# HG changeset patch # User Jan Vrany # Date 1558357091 -3600 # Node ID f0e51145a4ecf23bb0df1ec285d81a725759d789 # Parent fc59a1fcfdcd1274c885fff82fd8ad571438ae4b ``TerminalView`: add new APIs: #widthInChars` and `#heightInChars` diff -r fc59a1fcfdcd -r f0e51145a4ec TerminalView.st --- a/TerminalView.st Mon May 20 13:55:48 2019 +0100 +++ b/TerminalView.st Mon May 20 13:58:11 2019 +0100 @@ -522,6 +522,12 @@ "Modified: / 28.1.2002 / 20:56:11 / micha" ! +heightInChars + ^ nFullLinesShown + + "Created: / 20-05-2019 / 13:33:17 / Jan Vrany " +! + inStream "return the stream, which gets all input data (i.e. keyboard input)" @@ -616,6 +622,12 @@ shellTerminateAction := aBlock. "Created: / 12.6.1998 / 17:02:58 / cg" +! + +widthInChars + ^ innerWidth // gc font width. + + "Created: / 20-05-2019 / 13:33:23 / Jan Vrany " ! ! !TerminalView methodsFor:'accessing - behavior'!