summaryrefslogtreecommitdiff
path: root/clients/terminal.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-22Never include wayland-util.h directlyKristian Høgsberg1-1/+0
And fix a missing "" to <> conversion for wayland-client.h include.
2011-11-22Fix inconsistent #include stylePekka Paalanen1-1/+1
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-09-19window: Stop using glib mainloop in toy toolkitKristian Høgsberg1-20/+17
2011-09-19terminal: Make -f (fullscreen) option work againKristian Høgsberg1-1/+4
2011-08-29terminal: Fix unused return value warningsKristian Høgsberg1-8/+15
2011-08-29window.c: Drop global handler argumentKristian Høgsberg1-1/+1
We can just register a global handler directly on the wl_display now.
2011-06-21terminal: Don't set terminal size before we have the ptyKristian Høgsberg1-3/+3
2011-04-11Define global handler on display creationTim Wiederhake1-1/+1
Otherwise the initial announcement of interfaces gets lost.
2011-01-28Add initial basic support for fullscreen surfacesKristian Høgsberg1-1/+4
2011-01-25Fix new gcc 4.6 warningsKristian Høgsberg1-5/+2
simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable] etc.
2011-01-25Merge remote branch 'callum/master'Kristian Høgsberg1-3/+67
Conflicts: clients/window.h
2011-01-23close terminal window on exitTim Wiederhake1-2/+5
2011-01-21Add an orange pop-up menu to test the new map_transient requestKristian Høgsberg1-2/+2
2011-01-22Merge branch 'master' of git://anongit.freedesktop.org/waylandCallum Lowcay1-22/+215
Conflicts: clients/window.h
2011-01-21terminal: Just send the pty master fd to receive the selection.Kristian Høgsberg1-32/+5
LOL!!1
2011-01-21Actually send selected text when pastingKristian Høgsberg1-8/+33
2011-01-20Use cairo_push_group() for double buffering in the terminalKristian Høgsberg1-12/+16
Slightly different version of the patch from twied.
2011-01-20Render selectionKristian Høgsberg1-6/+100
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