Author terry.reedy
Recipients taleinat, terry.reedy
Date 2019-08-21.06:47:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566370033.98.0.615651298891.issue37903@roundup.psfhosted.org>
In-reply-to
Content
This issue proposes to add a shell-specific sidebar to Shell.  It follows-up #17535, which added a line-number sidebar to module editors and implements the first phase of #37892, which proposes that the single statement editing area of Shell should be strictly just that.

Looking ahead to this issue, #17535 added both a generic Sidebar class and a specific LineNumber subclass.  This issue proposes to add a 3 char wide ShellIO subclass that would mark the beginning of the blocks of text added to the Shell history area. Labels, such as '>>>', 'Out', 'Inp', and 'Err' would be used for the first line of user code input, program stdout, user response to input() (there is only one line), and program stderr (which includes tracebacks).  I am not quite sure what to do with debug notices and warnings from the warning modules.  Maybe use 'Con', maybe use Dbg and Wrn.  I expect to test variations.

As with LineNumber, the font face and size will the the same as in the text.  The labels should use the highlight colors of their text block except that '>>>' should continue getting the 'console' colors.

I thing the initial implementation should not response to clicks.  After experimentation, we might decide that clicking on a label could select whole blocks, but I would like get the essential stuff right first.
History
Date User Action Args
2019-08-21 06:47:14terry.reedysetrecipients: + terry.reedy, taleinat
2019-08-21 06:47:13terry.reedysetmessageid: <1566370033.98.0.615651298891.issue37903@roundup.psfhosted.org>
2019-08-21 06:47:13terry.reedylinkissue37903 messages
2019-08-21 06:47:13terry.reedycreate