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

Basic terminal #6

Open
bytorbrynden opened this issue Oct 5, 2016 · 1 comment
Open

Basic terminal #6

bytorbrynden opened this issue Oct 5, 2016 · 1 comment
Assignees
Milestone

Comments

@bytorbrynden
Copy link
Owner

The initial TTY (terminal), will build upon the existing VGA text-mode "helper", and will be fairly simple.
To start, we will rely upon the terminal mostly for vertical scrolling.

In the future, however, the terminal will also be tasked with accepting user input (via a USB keyboard).
From this, we could eventually build simple command-shells.

@Vild
Copy link
Collaborator

Vild commented Oct 5, 2016

If you want to make the terminal less "bad" you should do all the scrolling and slicing of the text before you start printing it to the screen.

For example if the string you are supposed to write is longer than 25 it should just clear the screen and write 25 lines counted from the bottom.

Examples from PowerNex:
https://github.com/Vild/PowerNex/blob/master/Kernel/src/IO/FS/IO/Console/Screen/VirtualConsoleScreen.d#L52

https://github.com/Vild/PowerNex/blob/master/Kernel/src/IO/FS/IO/Console/Screen/VirtualConsoleScreen.d#L141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants