Skip to content

windows.rb cannot reproduce the way vterm.rb receives startup_message #26

Description

@YO4

vterm.rb recieves startup message as stream, but windows.rb can not do same way.
This difference can be critical when the window size is short.
For example,

 +-------------------------------------------- scrollback area
 |Multiline REPL.
 +-------------------------------------------- visible area
 |prompt>
 |        Ruby is...
 |        A dynamic, open source programming
 |        language with a focus on simplicity
 |        and productivity. It has an elegant
 +-------------------------------------------- bottom of view

windows.rb can not recieve startup message as stream, can only retrieve_screen().
Use the Command Prompt Window, we can access whole screen buffer, so a solution exists.
On the other hand, when using the Windows Terminal, only the displayed area can be accessed.

In this situation, there is no way to get start_terminal() with startup_message: 'Multiline REPL.' to work.

Another problem exists, but mitigation exists for that one. f0ee26b
I believe that this case cannot be handled by windows-only code solely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions