Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dmitry Sapozhnikov
    @o-sdn-o
    Iā€™m planning to make a graphical frontend for the built-in terminal
    Paul G
    @paulie-g
    That would be excellent.
    I get your arguments above, and don't disagree in general, but ligatures are already supported for the cases people care about, no one cares about emoji, and few people care about exotic writing systems
    It's certainly time for something to provide the multi-cell features to enable wider/higher text (don't personally care about the rest of the use cases), but I strongly suspect if you want that support, you're going to have to implement it yourself
    Paul G
    @paulie-g
    the state machine is most of the work, so presumably once you have that for the built-in terminal, implementing a terminal emulator on top of it will be a marginally less onerous amount of work
    Dmitry Sapozhnikov
    @o-sdn-o

    I decided to go my own way, and decided not to use the classical state machine when parsing vt-sequences. And it works šŸ˜Ž

    I am currently implementing basic VT functionality combined with horizontal scrolling.
    image

    I made a small application showing the output of a terminal application running in vtm. It helps me find defects.
    image

    I will upload the next release as I finish a couple of bugs. It will take about a week.

    JaydenMWSoftwareDevelopment
    @JaydenMWSoftwareDevelopment
    A few seconds ago I tried to run VTM, I got no VTM and just a bunch of random charactors showing in terminal. This could be an issue with Windows.
    SSH won't work in regular powershell and cmd.exe, it works in Windows Terminal
    Something is messed up with Windows idk what
    Dmitry Sapozhnikov
    @o-sdn-o

    Probably the problem may be related to the following.

    The ENABLE_VIRTUAL_TERMINAL_PROCESSING mode for handling VT-sequences is disabled by default in the classic Windows console (the features added in the Anniversary Update for Windows 10, link).

    VTM (vtm.exe) forces this console mode on every startup:

    void tty::ignite()
    {
        ...
        ok(GetConsoleMode(board, &omode), "GetConsoleMode error (omode)");
        ok(GetConsoleMode(input, &imode), "GetConsoleMode error (imode)");
    
        DWORD sources = 0
                | ENABLE_EXTENDED_FLAGS
                | ENABLE_PROCESSED_INPUT
                | ENABLE_WINDOW_INPUT
                | ENABLE_MOUSE_INPUT
                ;
        ok(SetConsoleMode(input, sources), "SetConsoleMode error (input)");
    
        DWORD mode = 0
                | ENABLE_PROCESSED_OUTPUT
                | ENABLE_VIRTUAL_TERMINAL_PROCESSING
                | DISABLE_NEWLINE_AUTO_RETURN
                ;
        ok(SetConsoleMode(board, mode), "SetConsoleMode error (board)");
        ...
    }

    if for some reason the Windows console didn't enable this mode, then all VT-sequences are displayed as plain text:

    image

    The same goes for the SSH-client that comes with Windows, this SSH-client may not switch some modes, such as mouse tracking. With the latest version of the SSH-client this should work (WT issue comment), I haven't tested it yet. I didn't test this because the current version of Windows Terminal supports mouse tracking in WSL only.

    In Windows Terminal, the ENABLE_VIRTUAL_TERMINAL_PROCESSING mode is enabled by default, so there such problems don't appear.

    Dmitry Sapozhnikov
    @o-sdn-o
    I pushed all sources to github. You can now compile this project yourself for any platform.
    Dmitry Sapozhnikov
    @o-sdn-o
    Just for the sake of curiosity, if anyone has a glimpse of these sources, tell me how scary it is for an outside observer. The devil will break his leg there, but still I'm curious šŸ˜
    Dmitry Sapozhnikov
    @o-sdn-o
    Introduce new concept for terminal text layout
    rods
    Dmitry Sapozhnikov
    @o-sdn-o

    Feature

    • Wrap control CSI 12 : 0 p/CSI 12 : 1 p
    wrap_control
    jayden@jaydenmw
    @jayden-jmw:matrix.org
    [m]
    any updates?
    i see updates :P
    but what are the changes
    oh ok
    Dmitry Sapozhnikov
    @o-sdn-o
    curses apps work more accurately
    but not neat enough yet
    Jayden
    @jayden-jmw:matrix.org
    [m]
    I am writing a few command line and GUI utilities in Python.

    Utilities Featured (xcu utilities)

    File Manager
    Clock
    lspy.py (ls alternative)

    Jayden
    @jayden-jmw:matrix.org
    [m]
    Python is significantly easier than other languages.
    Dmitry Sapozhnikov
    @o-sdn-o
    Oh yeah! python is a great language. Many complex systems use it as a scripting language to control processes within the system. In VTM, the user interface is declarative and it makes sense to integrate with python in the future.
    Jayden
    @jayden-jmw:matrix.org
    [m]
    Yes, with the PythonSimpleGUI module you can make great GUIs. There are built in themes also! There are also other python modules that can do what VTM does.
    My bad, it's PySimpleGUI.
    Dmitry Sapozhnikov
    @o-sdn-o
    at the moment I am using python in VTM only to generate a header file for working with Unicode
    it generates a structure with unicode character attributes using the unicode database from the official site
    Jayden
    @jayden-jmw:matrix.org
    [m]
    Want to see my latest projects? They are cool!
    Dmitry Sapozhnikov
    @o-sdn-o

    Want to see my latest projects?

    I would be curious to look at your project

    To view more... click here https://codeberg.page/jaydenmw
    here they are :D
    Jayden
    @jayden-jmw:matrix.org
    [m]
    šŸŒØļø
    Dmitry Sapozhnikov
    @o-sdn-o
    šŸ‘Œ
    Jayden
    @jayden-jmw:matrix.org
    [m]
    :D
    Dmitry Sapozhnikov
    @o-sdn-o
    Check out the updated UI (v0.3.5)
    ssh vtm@netxs.online
    Dmitry Sapozhnikov
    @o-sdn-o
    This is just a concept. The window menu is not functional yet.
    Dmitry Sapozhnikov
    @o-sdn-o
    image.png
    With the latest Windows update, the Demo works fine in the classic command prompt.
    Dmitry Sapozhnikov
    @o-sdn-o
    Correct font for windows console: DejaVu Sans Mono
    Dmitry Sapozhnikov
    @o-sdn-o
    FreeBSD systems supported now.
    I removed the link to this chat from the project description (readme.md). The place for discussion is now https://github.com/netxs-group/VTM/discussions