You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fb/README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ This directory contains source code to support PDCursesMod using either the 'tra
6
6
Shortcomings (which should be addressable) are :
7
7
8
8
- It assumes 8 or 32 bits/pixel. It should be relatively easy to support other bit depths with suitable changes to the `PDC_transform_line()` function in `pdcdisp.c`, but I don't currently have a system that supports 15-, 16-, or 24-bits per pixel. (Fortunately, such displays appear to be getting rare. I had to dig out an elderly laptop to test the 8-bit display.)
9
-
- The mouse is not supported. It looks as if the `uinput` system allows one to access the mouse without needing X; I need to investigate. `gpm` may be a better choice.
10
9
- Italic and bold fonts are synthesized from the given font, but it would be relatively easy to let specific fonts be used for that purpose.
11
10
12
11
The default font, borrowed from [DOSVGA](../dosvga), is fixed at 8x14. Set the environment variable `PDC_FONT` to point to the name of a PSF1, PSF2, or VGA font to use that font instead. (See `psf.c` for comments on these font formats.) Hit Alt-Minus to toggle between the built-in and the `PDC_FONT`-specified fonts. Add more fonts with `PDC_FONT2`, `PDC_FONT3`, etc; Alt-Minus will then cycle among all specified fonts and the built-in one.
@@ -26,18 +25,23 @@ In no order :
26
25
- Fallback fonts.
27
26
- Fullwidth characters. For these, we may need one font that is, say, 8 pixels wide (for most characters) and one that is 16 pixels wide for the fullwidth characters. That may be an extension of the above task of having fallback fonts : "Didn't find the desired glyph in the 'normal' font? Maybe it's in a fallback font." Alternatively, we can make use of the fact that the Unicode-to-glyph table can have the same Unicode value twice. The first one would point to a 'left' glyph; the second to a 'right' glyph. Probably the way I'll go...
28
27
- Programmatic resizing through `resize_term()`, both before and after calling `initscr()`.
29
-
- User-resizing and moving of windows, if we can get the mouse to work.
28
+
- User-resizing and moving of windows.
30
29
- Reserve a line at the top wherein the application title and close/full-screen/minimize buttons can go. The `ripoffline()` function may be useful here.
31
30
32
31
Building
33
32
--------
34
33
35
-
Run `make`, `make WIDE=Y`, or `make UTF8=Y`. Add `DLL=Y` to get a shared library (.so) on *nix builds. On Linux, add `DRM=Y` to get a DRM version; otherwise, you'll get a Linux framebuffer version. On *BSD, use `gmake`, and you get DRM no matter what (as the name implies, the Linux framebuffer is Linux-only). Run `make install` (you'll probably need to be root or use `sudo` for this) to install the shared library.
34
+
Run `make`, `make WIDE=Y`, or `make UTF8=Y`. Add `DLL=Y` to get a shared library (.so) on *nix builds. On Linux, add `DRM=Y` to get a DRM version; otherwise, you'll get a Linux framebuffer version. On *BSD, use `gmake`, and you get DRM no matter what (as the name implies, the Linux framebuffer is Linux-only). Add `HAVE_MOUSE=Y` for mouse support (this uses the `evdev` library). Run `make install` (you'll probably need to be root or use `sudo` for this) to install the shared library.
35
+
36
+
Permissions
37
+
-----------
38
+
39
+
Access to either the framebuffer or to DRM requires that a user be in the `video` group.
36
40
37
41
Caveats
38
42
-------
39
43
40
-
See above. This all works nicely and stably, but it lacks mouse input and support for 15 and (possibly) 16-bit and 24-bit displays.
44
+
See above. This all works nicely and stably, but it lacks support for 15 and (possibly) 16-bit and 24-bit displays.
0 commit comments