fpjohnston / TECO-64

Enhanced and portable version of TECO text editor in C.
24 stars 6 forks source link

Using video let the 'screen' black initially #18

Open mcctuxic opened 6 months ago

mcctuxic commented 6 months ago

When using this sequence of commands:

From the Linux command shell (testfile.txt is an existing, non empty text file).
#> teco testfile.txt  
*
* 5,7:w`-w``

will split the screen in two halves as expected, but no text is visible.

One needs to press <CTRK/K> to switch the background of the video mode screen white and the text black, which is confusing and not expected.

fpjohnston commented 6 months ago

It sounds like it's starting with foreground colors the same as background colors for some reason. CTRL/K was intended as a workaround if this was unintentional on the part of the user, but it sounds like you've found a bug. I've been preoccupied with other matters for a few weeks, but I'll investigate this and other bugs in the next few days.

mcctuxic commented 6 months ago

Hi Franklin,

thanks for your reply - on a weekend! :)

I played around with this effect a little after I posted the issue and got different results...or in other words: It behaves not deteministic ;) every time. At first glance I would guess it has something to do with something not being initialized before use.

On 11/12 01:37, Franklin P. Johnston wrote:

It sounds like it's starting with foreground colors the same as background colors for some reason. CTRL/K was intended as a workaround if this was unintentional on the part of the user, but it sounds like you've found a bug. I've been preoccupied with other matters for a few weeks, but I'll investigate this and other bugs in the next few days.

-- Reply to this email directly or view it on GitHub: https://github.com/fpjohnston/TECO-64/issues/18#issuecomment-1807072140 You are receiving this because you authored the thread.

Message ID: @.***>