Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pc-tty: add framebuffer-based console #515

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Oct 30, 2024

  1. pc-tty: add framebuffer-based console

    Adds a graphics mode console that prints terminal output in 8x16 font
    to a linear framebuffer located under address queried via platformctl/pctl_graphmode
    in a 80x25 terminal resolution.
    
    This implementation assumes ARGB ordering of the framebuffer
    
    JIRA: RTOS-925
    adamgreloch committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    3c94129 View commit details
    Browse the repository at this point in the history
  2. pc-tty: add enabling/disabling fbcon via ioctl

    Graphical apps can now disable console drawing via ioctl/TTYSETMODE to
    ensure uninterrupted drawing (otherwise app and console would draw
    to the framebuffer in the same time, causing mess)
    
    JIRA: RTOS-925
    adamgreloch committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    6c8e89a View commit details
    Browse the repository at this point in the history
  3. pc-tty: resize current vt to max fbcon resolution

    Current vt will now automatically resize from 80x25 to the maximum
    resolution supported by current graphic mode if fbcon is enabled
    (i.e. for 1280x800 and 8x16 font it will resize to 160x50)
    
    JIRA: RTOS-925
    adamgreloch committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    22607f9 View commit details
    Browse the repository at this point in the history
  4. pc-tty: pass vram offs to vram accessors instead of ptrs

    Since the _ttypc_vga_{set,read,write,move} have the ttypc_vt_t already
    passed, they can retrieve the vga pointer from that struct. This also
    makes the API more secure in case of fbcon, which implicitly assumed
    vga == vt->vram when calculating char positions. Now this assumption is
    guaranteed
    
    JIRA: RTOS-925
    adamgreloch committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    25efa68 View commit details
    Browse the repository at this point in the history