fbcon,vgacon,vt: Share helpers for text cursors
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest5 patches 0 repliesNew
- v35 patches 5 repliesSuperseded
- v25 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 5 patches | 2 replies | Superseded |
Changes in v4 from the cover letter
- vgacon: validate size before handlign CUR_NONE
- use do-while over goto (Jani)
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vt: Add cursor-size helpersdrivers/ include/ | +122 | 0 replies | |
| 2/5 | vgacon: Remove trailing whitespacesdrivers/ | +5 | 0 replies | |
| 3/5 | vgacon: Use vt_cursor_{start,end}()drivers/ | +5 | 0 replies | |
| 4/5 | lib/fonts: Add font_glyph_cursor() helperinclude/ lib/ lib/ | +62 | 0 replies | |
| 5/5 | fbcon: Replace fbcon_fill_cursor_mask() with fbcon_cursor_glyph()drivers/ drivers/ drivers/ +3 more | +16 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Helge Deller | Greg Kroah-Hartman |
|---|---|---|
| 1/5 | R-b | A-b |
| 2/5 | R-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/5] fbcon,vgacon,vt: Share helpers for text cursors
VT consoles fbcon and vgacon implement various cursor sizes (i.e., underline, block, half-block, etc). Share related code and harmonize the look and behaviour.
In patches 1 to 3, move VT cursor-size calculations to the VT subsystem and use the new helpers from vgacon. Replace similar code in the console. The new helpers also take VT's default cursor size into account.
Fbcon implements a custom helper that creates a cursor glyph for the given cursor size. In patches 4 and 5, move the code into the font library and update fbcon to use the new helper. The cursor-glyph shape rendering is tied to the font in use. Hence move them next to each other. Also update fbcon to use the shared cursor-size helpers.
Tested with fbcon under bochs (qemu) and with vgacon on an old SiS 6202 VGA card. Other consoles (newport_con, sticon) don't support cursor sizes, so leave them as-is.
v4:
- vgacon: validate size before handlign CUR_NONE
- use do-while over goto (Jani)
v3:
- mention user interfaces to control cursor size in commit message (GregKH)
- elaborate defaults (GregKH)
- move retry logic into helper
- handle CUR_DEF
v2:
- restore vc_cell_height in vgacon
- avoid interference from concurrent user space
- fix docs
Thomas Zimmermann (5):
vt: Add cursor-size helpers
vgacon: Remove trailing whitespaces
vgacon: Use vt_cursor_{start,end}()
lib/fonts: Add font_glyph_cursor() helper
fbcon: Replace fbcon_fill_cursor_mask() with fbcon_cursor_glyph()
drivers/tty/vt/vt.c | 114 +++++++++++++++++++++++++++ drivers/video/console/vgacon.c | 43 +++------- drivers/video/fbdev/core/bitblit.c | 3 +- drivers/video/fbdev/core/fbcon.c | 45 +++-------- drivers/video/fbdev/core/fbcon.h | 2 +- drivers/video/fbdev/core/fbcon_ccw.c | 3 +- drivers/video/fbdev/core/fbcon_cw.c | 3 +- drivers/video/fbdev/core/fbcon_ud.c | 3 +- include/linux/console_struct.h | 8 ++ include/linux/font.h | 4 + lib/fonts/Makefile | 3 +- lib/fonts/font_cursor.c | 56 +++++++++++++ 12 files changed, 210 insertions(+), 77 deletions(-) create mode 100644 lib/fonts/font_cursor.c
base-commit: b0bd9fb9e92aae2a653efa1d0407daa2aabe99d0
Signature · 1 line
2.55.0