summaryrefslogtreecommitdiff
path: root/clients/terminal.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-19Use libxkbcommon #defines for modifiersKristian Høgsberg1-8/+8
2011-01-19Add proof-of-concept selection support to terminalKristian Høgsberg1-0/+87
Next will be to support mouse selections so we can copy and paste something more interesting than just 'selection data'.
2011-01-19Pass input device and time in key_handler callbackKristian Høgsberg1-2/+10
Move the modifiers to a input device getter function.
2011-01-14terminal: Window operationsCallum Lowcay1-3/+67
Implement OSC 1 (set window title), and some basic CSI t window operations. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-13terminal: Fix bugs in attribute renderingCallum Lowcay1-20/+14
Fixed ignoring of concealed attribute, incorrect underline colour, and glyph_run_flush not resetting the attribute. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-12Merge branch 'master' of git://anongit.freedesktop.org/waylandCallum Lowcay1-118/+204
Conflicts: clients/terminal.c
2011-01-12terminal: Escape sequences with string parametersCallum Lowcay1-40/+147
Adjust escape parsing code to handle OSC, DSC, and other escape sequences with string parameters. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-11Batch up drawing glyphsKristian Høgsberg1-25/+82
2011-01-11Hold on to the scaled fonts we useKristian Høgsberg1-15/+17
2011-01-11Use cairo_show_glyphs for rendering textKristian Høgsberg1-9/+12
A small step for now.
2011-01-11Factor out decoding of character attributesKristian Høgsberg1-62/+52
2011-01-11Only draw background if it's different from what's already thereKristian Høgsberg1-0/+3
2011-01-11Make border color a color from the color tableKristian Høgsberg1-7/+3
2011-01-11Add helper to set color from color tableKristian Høgsberg1-11/+12
2011-01-11Split background and foreground painting into separate loopsKristian Høgsberg1-7/+42
2011-01-11Fix terminal resizingKristian Høgsberg1-35/+36
Get snapping to character grid working again, avoid crashes when attempting to resize below 1x1 character cell, only redraw when size actually changes. Also, rename window_get_child_rectangle() to window_get_child_allocation().
2011-01-11Merge branch 'master' of git://anongit.freedesktop.org/waylandCallum Lowcay1-0/+4
2011-01-10terminal: fix crashing when terminal size is < 0Tiago Vignatti1-0/+4
Just skip drawing when width or height is less than zero. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
2011-01-10terminal: More character attributesCallum Lowcay1-11/+26
Implement the concealed attribute, and 16-colour attributes. Fix a bug in 256-colour attributes that prevented them from working in elinks. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Various fixesCallum Lowcay1-20/+19
Fix several bugs in the previous patches. Fix inverse inverse video with bold attribute, incorrect duplication of attributes when scrolling up, underline aliasing, bottom scroll margin adjustment when resizing, and unnecessary sleep when sending terminal reports. Change TERM environment variable to xterm-256color to better reflect terminal capabilities (although it still doesn't emulate all of xterm). Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Special keysCallum Lowcay1-5/+174
Implements support for function, cursor, and editing keys, with modifiers. Partially implements application keypad mode. Expands control key support. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Implement character set switchingCallum Lowcay1-0/+117
Includes the 3 vt100 character sets. Some of the graphic symbols don't display because they are not included in the default font. Apparantly the cairo toy font API doesn't do font substitution. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: vt102 editing commandsCallum Lowcay1-2/+97
Implement the vt102 editing commands, and insert/replace mode. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Basic vt100 escape codesCallum Lowcay1-43/+343
Implements correct behaviour for vt100 cursor movement, erasing, custom tabs, and reporting. Includes relevant terminal modes. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Scroll marginsCallum Lowcay1-16/+190
Implement scroll margins and related escape codes. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Escape sequence handling fixesCallum Lowcay1-57/+156
Upgrade and refactor terminal_data to properly handle non-csi escape codes, control characters in escape codes, and invalid escape sequences. Also fix a buffer overflow in the escape sequence buffer. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Window size ioctlsCallum Lowcay1-8/+19
Use TIOCSWINSZ ioctl to set window size on terminal resize. This causes applications to be notified of the resize event. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: Fancy colorsCallum Lowcay1-38/+295
Includes bold, underline, inverse, and blink attributes. Blink is rendered bold as in xterm. Supports xterm's 256 color palette. Signed-off-by: Callum Lowcay <callum@callumscode.com>
2011-01-08terminal: UTF-8 supportCallum Lowcay1-25/+175
Signed-off-by: Callum Lowcay <callum@callumscode.com>
2010-12-17Update surface.attach and change surface.map to surface.map_toplevelKristian Høgsberg1-1/+1
The new map_toplevel() request no longer specifies a position and takes the size from the attached buffer. The attach request now takes a position relative to the top-left corner of the old buffer to let clients specify the relative position of the new buffer.
2010-11-22Make clients exit orderly when there is no connectionYuval Fledel1-0/+4
2010-09-03Replace commit/ack/frame protocol with simpler sync and frame callbacksKristian Høgsberg1-1/+1
2010-07-28Update keyboard focus handler signaturesKristian Høgsberg1-1/+1
2010-07-08Update to use eglGetDRMDisplayMESA()Kristian Høgsberg1-1/+0
2010-06-25Use libxkbcommon for mapping keycodes to keysymsKristian Høgsberg1-7/+39
2010-06-25Set window user data using separate functionKristian Høgsberg1-4/+4
2010-06-15Update decoration drawing to be less cairo path happyKristian Høgsberg1-1/+1
2010-06-14Consolidate redraw scheduling in window.cKristian Høgsberg1-28/+7
2010-06-14Fix resizingKristian Høgsberg1-35/+24
2010-06-08Send device name at connect timeKristian Høgsberg1-20/+3
2010-06-08Consolidate more code in clients/window.cKristian Høgsberg1-32/+2
2010-06-04Move clients to subdirectoryKristian Høgsberg1-0/+607