Commit Graph

14 Commits

Author SHA1 Message Date
ray
97d6ba6169 Respect SC_NO_CUTPASTE option. It disable mouse cursor and cut/paste support
for vt(9). Note: /dev/sysmouse not affected.

Sponsored by:	The FreeBSD Foundation
2013-12-09 15:01:34 +00:00
ray
3a1474f1ca Done cut/paste "word" selection mode support.
It still selects everything which is not space around.

Sponsored by:	The FreeBSD Foundation

Sponsored by:	The FreeBSD Foundation
2013-11-14 15:44:22 +00:00
ray
2393e1d45d wrap long lines.
Sponsored by:	The FreeBSD Foundation
Sponsored by:	The FreeBSD Foundation
2013-11-14 15:14:27 +00:00
ray
ba5a321719 Save last mouse event and check if the button1-up event happen w/o movement,
then ignore it. Otherwise such events broke double/triple click sequence.

Sponsored by:	The FreeBSD Foundation
2013-11-14 13:25:47 +00:00
ray
bf95a4a20c Simplify a bit vtbuf_set_mark.
Sponsored by:   The FreeBSD Foundation
2013-11-14 00:00:55 +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
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
0ff0e79509 Add mouse related vtbuf operations.
Sponsored by:	The FreeBSD Foundation
2013-11-11 11:50:17 +00:00
ray
3ec83506b8 Fix copyrights.
Sponsored by:	The FreeBSD Foundation
2013-11-02 14:20:29 +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
baa491bf97 Turn off confusing rotation of scroll history.
Sponsored by:	The FreeBSD Foundation
2013-10-23 14:15:46 +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
ray
c7a97e97fa o Implement history buffer.
o Join history buffer with screen buffer. Same type of things.
o Reimplement buffer as an array of rows. Make it circular, so no overflow
	tracking.
o Implement VT_PROCESS mode. Locking of VT switching by owner process.
o Add debug and deadtimer sysctls. deadtimer - defaulting to 15 seconds, time
	to wait process answer in VT_PROCESS mode, to do VT switch in case when
	process hang.
o Implement later console attach.
o Fix (partially yet) keyboard allocation.
o Add drivers priority. Disallow to replace KMS driver with VGA.
o Add ability to resize terminals.

Sponsored by:	The FreeBSD Foundation
2013-10-08 12:40:04 +00:00
ed
98e93f6b12 Readd the vt(4) driver and corresponding tools. 2011-03-22 21:31:31 +00:00