1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

8 Commits

Author SHA1 Message Date
Achilleas Anagnostopoulos
cbf0c82702 Change Dimensions() signature to support querying for characters or pixels 2017-07-13 22:06:50 +01:00
Achilleas Anagnostopoulos
3485523cdc Update the Driver.DriverInit method signature to accept an io.Writer
Drivers can use the writer as an argument to kfmt.Fprintf to log
additional output during their initialization.
2017-07-08 22:09:19 +01:00
Achilleas Anagnostopoulos
b1084c1362 Fix broken unit tests 2017-07-08 13:02:15 +01:00
Achilleas Anagnostopoulos
ffb8f86a9c Each driver should manually register a probe function for use by hal
This commit removes the HWProbes() function from the console and tty
packages and replaces it with a global ProbeFuncs slice which is fetched
by the hal package when the hardware autodetection code runs.

Each driver should provide an init() function that appends a probe function
to the global ProbeFuncs slice.

This approach allows us to support conditional compilation of drivers in
the future (e.g. using build tags)
2017-07-08 12:26:40 +01:00
Achilleas Anagnostopoulos
4845f7a4ca Use uint32 instead of uint16 for TTY coordinates 2017-07-08 12:26:40 +01:00
Achilleas Anagnostopoulos
562fae2028 Detect hw and wire active console and TTY 2017-07-07 21:37:00 +01:00
Achilleas Anagnostopoulos
0f3af2e78d Refactor VT implementation
This commit refactors the old VT implementation to work with the revised
TTY interface and adds support for:
- scrollback
- terminal state handling

When a terminal becomes activated, it overwrites the attached console
contents with the contents of its viewport.
2017-07-07 21:37:00 +01:00
Achilleas Anagnostopoulos
78c87ab165 Cleanup and revise TTY interface 2017-07-07 21:37:00 +01:00