ray
ca21cb44d3
Panic/DDB check should only affect mouse, screen redraw allowed. :)
2013-11-13 23:58:45 +00:00
ray
86dec2aac1
Do not add <CR><LF> for last (single) line of paste buffer.
...
Sponsored by: The FreeBSD Foundation
2013-11-13 14:35:00 +00:00
ray
a7cc0f5b3f
Move vt_mouse_event out of sysmouse lock.
...
Sponsored by: The FreeBSD Foundation
2013-11-13 12:34:24 +00:00
ray
d90e7c4086
o Simplify POS_INDEX macro calculation.
...
o New macro POS_COPY to copy between term_pos_t.
o Add vtbuf_wth/vtbuf_htw helpers, to translate between screen coordinates and
circular history buffer location.
o Update vtbuf_iscursor to mark region selected by mouse.
o New helper vtbuf_flush_mark, to update regions where copy/paste mark changed.
o New method vtbuf_get_marked_len to get storage size for paste buffer.
o vtbuf_extract_marked fill (caller allocated buffer) with selected region data.
o Simplify mouse handler for copy/paste, and use vtbuf_flush_mark to update.
o New method vtbuf_scroll_mode, to help indicate Scroll mode by hiding cursor.
o Update header with new vtbuf methods.
o Add new vt_driver method vd_markedwin, to hold last window with selection.
o Enable paste support in core module.
Sponsored by: The FreeBSD Foundation
Pointed by: Claude Buisson <clbuisson@orange.fr> (Scroll mode indication)
2013-11-13 12:32:41 +00:00
ray
6c7023e93f
Add kern.vt.suspendswitch tunable. This will allow to disable default behavior
...
(switch to VT0 on suspend, switch back on resume).
If 0 - disabled, other values - enabled.
Requested by: jhb
Sponsored by: The FreeBSD Foundation
2013-11-11 22:07:56 +00:00
ray
2edf4bd36a
Update vd_bitbltchr_t type to handle operation mask (to not touch pixels which
...
is not defined in mask) and bpl (bytes per source line).
Only vt_fb driver handle handle bpl yet.
Add protector for case when blitting image can be drawn partially out of screen,
like mouse cursor.
Mouse cursor and its movements works fine, copy/paste not yet.
Sponsored by: The FreeBSD Foundation
2013-11-11 13:25:49 +00:00
ray
792e20c4de
Add forgotten definition of vt_default_mouse_pointer.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 13:06:31 +00:00
ray
d5a2f3c539
Define vt_mouse_event method.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:44:54 +00:00
ray
8dbd4d4ade
Wrap long lines.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:38:28 +00:00
ray
b2222c2dc5
Enable/disable mouse cursor on MOUSE_SHOW/MOUSE_HIDE.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:36:18 +00:00
ray
8a8f79117d
o Update vt_flush to care about mouse pointer.
...
o Sort variable declarations.
o Disable mouse support for DDB.
o Expose region to update on old mouse position.
o Draw mouse cursor on current position.
There is some extra bits for calculation of size to copy bitmap to screen.
It is not supported by drivers, but will be changed in following commits.
Sponsored by: The FreeBSD Foundation
2013-11-11 12:34:30 +00:00
ray
ce49cf77c2
Eliminate call to vd_blank method, it is too expensive.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:26:35 +00:00
ray
e62bfaecf6
Use saved offset to font aligned area.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:24:17 +00:00
ray
132f448cdd
Save offset to font aligned area.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:22:44 +00:00
ray
76a7e05ec7
Add vt_mouse_event mouth event handling method.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:19:26 +00:00
ray
5c96d5741b
o Remove include of sys/mouse.h, it is included from vt.h now.
...
o Call vt_mouse_event method, to notify VT(9) about mouse events.
o Add empty MOUSE_MOUSECHAR ioctl handler.
o Remove trailing whitespace.
Sponsored by: The FreeBSD Foundation
2013-11-11 12:15:52 +00:00
ray
b8f44376b1
Use vtbuf_iscursor method instead of macro to get chars to display inverted.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:10:26 +00:00
ray
9ce47de113
Add mouse related bits.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 12:08:43 +00:00
ray
b581831acb
Define marker support functions and type of markers.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 11:55:22 +00:00
ray
cd98b12538
Add cut/paste region markers.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 11:53:08 +00:00
ray
0ff0e79509
Add mouse related vtbuf operations.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 11:50:17 +00:00
ray
f83cd06fa5
Add default cursor pixmap.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 11:46:41 +00:00
ray
1422af8dad
Rename font_default.c to vt_font_default.c. Prefix will make less possibility
...
for object file names collision.
Sponsored by: The FreeBSD Foundation
2013-11-11 11:45:47 +00:00
ray
62241f0d6a
Add mouse cursor format structure.
...
Sponsored by: The FreeBSD Foundation
2013-11-11 11:37:02 +00:00
ray
0f856870cd
Use opt_syscons.h to get defines.
...
Define max number of windows as VT_MAXWINDOWS if defined, or as MAXCONS, or 12.
Define VT_MOUSE_PASTEBUTTON and VT_MOUSE_EXTENDBUTTON if defined
SC_TWOBUTTON_MOUSE or VT_TWOBUTTON_MOUSE.
Sponsored by: The FreeBSD Foundation
2013-11-11 11:30:47 +00:00
ray
89ea1ab094
Handle suspend/resume. Switch to console window before suspend, switch back on
...
resume. That fix issue with broken Xorg image after resume.
Fix some style whilst here.
Sponsored by: The FreeBSD Foundation
2013-11-07 21:08:52 +00:00
ray
147123a2c6
Early console with FDT/OFW support.
...
TODO - done PPC, SPARC64 and FDT-less variants.
Sponsored by: The FreeBSD Foundation
2013-11-05 23:09:36 +00:00
ray
1e2852a5da
Export vt_fb VT driver methods to allow reuse.
...
Sponsored by: The FreeBSD Foundation
2013-11-05 23:01:57 +00:00
ray
24c8405a42
Define default size for early console to 640x480.
...
Sponsored by: The FreeBSD Foundation
2013-11-05 23:00:26 +00:00
ray
1f23a20cd6
Increase history size to 500 lines.
...
Sponsored by: The FreeBSD Foundation
2013-11-05 22:59:11 +00:00
ray
e4cf6ae315
Enable splash on Mute flag.
...
TODO: use tunable for control splash.
Sponsored by: The FreeBSD Foundation
2013-11-05 22:57:05 +00:00
ray
71ed33b8c0
Notify DRM about panic or kdb enter happen. So we can see kernel messages in
...
that case.
To investigate: Return from kdb is broken, seems due to locks usage. TODO
Sponsored by: The FreeBSD Foundation
2013-11-04 09:01:52 +00:00
ray
3ec83506b8
Fix copyrights.
...
Sponsored by: The FreeBSD Foundation
2013-11-02 14:20:29 +00:00
ray
630a3895d3
o Remove extra check for status of processes who hold terminals.
...
o Clean up and comment things.
Sponsored by: The FreeBSD Foundation
2013-10-30 15:25:23 +00:00
nwhitehorn
019d0aadbc
Remove some local changes unrelated to r257294.
2013-10-29 00:56:21 +00:00
nwhitehorn
012978f9de
It is perfectly possible for keyboard drivers to queue up more than one
...
key press per notification call. Loop until there are no more queued
key presses, like syscons did. This fixes stuttering observed in particular
on key repeats with ADB and USB keyboards.
2013-10-29 00:52:02 +00:00
nwhitehorn
5e9e540ff9
Get colors right on mac framebuffers.
2013-10-27 15:14:27 +00:00
ray
d0cb2349bc
Move tools to proper place.
...
Sponsored by: The FreeBSD Foundation
2013-10-26 14:57:08 +00:00
ray
34e507fb2b
Remove not done and not used driver for intel video.
...
Sponsored by: The FreeBSD Foundation
2013-10-25 21:57:03 +00:00
ray
40b4804223
o Mute keyboard input when ScrollLock mode is active.
...
o Simplify keys handling.
o Send ESC sequence for arrow keys in _cngetc, that will fix DDB history.
Sponsored by: The FreeBSD Foundation
2013-10-24 21:54:24 +00:00
ray
41788ddb71
o Fix scroll calculations.
...
o Make vthistory_seek to return amount of lines to update +on_top/-on_bottom of
screen.
Sponsored by: The FreeBSD Foundation
2013-10-24 21:43:46 +00:00
ray
b5d885c5f9
Use copy method which maybe defined by framebuffer provider, but not just
...
memmove.
Sponsored by: The FreeBSD Foundation
2013-10-23 19:45:14 +00:00
ray
baa491bf97
Turn off confusing rotation of scroll history.
...
Sponsored by: The FreeBSD Foundation
2013-10-23 14:15:46 +00:00
ray
f561b1bcf8
Add new vt_buf flag VBF_HISTORY_FULL - whole history filled.
...
Sponsored by: The FreeBSD Foundation
2013-10-23 13:35:46 +00:00
ray
3d72b52090
MFC @r256953
2013-10-23 09:21:14 +00:00
ray
280385557c
Add VT(9) driver for generic framebuffer.
...
Sponsored by: The FreeBSD Foundation
2013-10-22 14:39:32 +00:00
ray
445adb5a17
o Do not blank screen on window resize.
...
o Force resize for first window (usually console).
o Inform user on driver changes.
o Reverse priority. Bigger now better.
Sponsored by: The FreeBSD Foundation
2013-10-22 14:37:20 +00:00
ray
340eef3034
Reverse priority. Bigger now better.
...
Sponsored by: The FreeBSD Foundation
2013-10-22 14:32:42 +00:00
ray
79df61c265
Hardware specific drivers have bigger priority (over VGA for example).
...
Sponsored by: The FreeBSD Foundation
2013-10-22 13:56:42 +00:00
ray
6ed638c56a
Don't forget to clean terminal window memory. But colors makes more smiles.
...
Sponsored by: The FreeBSD Foundation
2013-10-22 13:53:58 +00:00