Commit graph

966 commits

Author SHA1 Message Date
Charlie Gordon
c36cccd4bf build: group all intermediary targets in .objs directory
- each architecture has a specific subdirectory
- object files for qe, xqe and tqe are each in an arch specific subdirectory
- libraries are generated in .objs with an arch specific name
2017-05-08 10:15:43 +00:00
Charlie Gordon
eb97ef08b7 shell: fix spurious crash bug
- add check_mode_data() to verify mode data pointer validity
- avoid double free in qe_free_mode_data() and shell_pid_cb()
2017-05-07 20:32:30 +00:00
Charlie Gordon
c4550e1e7f clang: add Game Monkey scripting language 2017-05-07 20:29:29 +00:00
Charlie Gordon
bc0e355e5c archive: fix small bugs 2017-05-07 20:27:18 +00:00
Charlie Gordon
16359e92ae tests: add test from gnome vte 2017-05-07 08:06:07 +00:00
Charlie Gordon
1b0fc02549 tty: detect and handle AtariST terminal TW100 (F.Revol) 2017-05-07 06:18:40 +00:00
Charlie Gordon
bd44951866 build: fix X11 directory lookup (F.Revol) 2017-05-07 06:17:11 +00:00
Charlie Gordon
2866a48b11 build: Cross-compile using the NetSurf SDK. (F.Revol) 2017-05-07 06:12:39 +00:00
Charlie Gordon
d2d3a7b31e build: detect missing SA_RESTART definition in qe_event_init (F.Revol) 2017-05-07 06:09:19 +00:00
Charlie Gordon
128d0c28dd build: use CONFIG_MMAP when unmapping buffer data in eb_clear() (F.Revol) 2017-05-07 06:08:57 +00:00
Charlie Gordon
4bdbd8bd9e build: use target specific size utility via SIZE configuration variable (F.Revol) 2017-05-07 06:08:32 +00:00
Charlie Gordon
5f0fc5eacf fractal: use graphics API instead of colored buffer text
- use bmp_draw to update the screen instead of generating utf-8 art
- add color parametric color palette and palette shifting
- separate image invalidation from actual redrawing
- changing fractal type also resets origin
- some computation simplifications
2017-05-06 17:18:42 +00:00
Charlie Gordon
cda5479aa0 tty: add graphics emulation with 2 pixels per char 2017-05-05 20:10:51 +00:00
Charlie Gordon
20dbafc03b colors: add macros to extract red, green and blue components 2017-05-05 20:08:52 +00:00
Charlie Gordon
634d3c9165 graphics: add 1 and 8 bit bitmap formats 2017-05-05 20:07:52 +00:00
Charlie Gordon
860d805b92 x11: fix QEPicture format for 24 bit depth with 32 bits per pixel 2017-05-05 20:05:35 +00:00
Charlie Gordon
11a7e6a6d8 image: only invalidate current window upon movement 2017-05-05 19:59:49 +00:00
Charlie Gordon
3165dcad8b basic: C-g erases diag area (bottom right corner) 2017-05-05 19:58:39 +00:00
Charlie Gordon
a731522e72 tty: improve terminal color capabilities detection
- use COLORTERM environment variable
- detect OS/X iTerm.app
2017-05-04 08:15:16 +00:00
Charlie Gordon
5d8e56710f display: add window fields for character cell size
- compute_client_area computes default character sizes in
  EditState.char_width and EditState.line_height.
- edit_invalidate() takes extra parameter to invalidate
  all windows
- do_toggle_full_screen() no longer toggles modeline
- reset WF_POPLEFT in do_delete_other_windows
- bind toggle-full-screen on C-c f
- bind toggle-mode-line on C-c m
- move fill_border to display.c
2017-05-03 12:58:23 +00:00
Charlie Gordon
870af2da67 display: add window fields for character cell size
- compute_client_area computes default character sizes in
  EditState.char_width and EditState.line_height.
- edit_invalidate() takes extra parameter to invalidate
  all windows
- do_toggle_full_screen() no longer toggles modeline
- reset WF_POPLEFT in do_delete_other_windows
- bind toggle-full-screen on C-c f
- bind toggle-mode-line on C-c m
- move fill_border to display.c
2017-05-03 10:50:49 +00:00
Charlie Gordon
d0e6015bc7 x11: small improvements
- interpret X11 geometry string as pixels, not characters
- fix invalid UCS2 character display in x11
2017-05-03 10:08:16 +00:00
Charlie Gordon
3db0dd892f script: split script-mode into shell specific modes
- add specific modes for sh, bash, csh, ksh, zsh and tcsh
2017-05-03 08:10:56 +00:00
Charlie Gordon
94dac6e8cb archive: select tar on .taz and man on .roff 2017-05-03 08:04:08 +00:00
Charlie Gordon
03bb89b96f shell: set error pointer upon process buffer creation 2017-05-03 07:18:05 +00:00
Charlie Gordon
aadbb5ede3 tests: add fractal types 2017-04-29 09:22:45 +00:00
Charlie Gordon
f1888d89b5 display: fix graphics cursor in process buffer
- force cursor minimum width at end of line
2017-04-28 21:46:01 +00:00
Charlie Gordon
df77bc2635 fractal: use buffer_mode_data instead of static structure for FractalState 2017-04-28 13:32:43 +00:00
Charlie Gordon
dbc17518c2 tests: add fractal test functions
- improve mandelbrot shell script
- add fractal.c: a fractal generator and navigator that can
  be used as a terminal stress test.
- add fractal-mode for easy fractal navigation and zooming
  with key bindings.
- try it out with C-h m SP / SP / SP ...
2017-04-27 23:04:10 +00:00
Charlie Gordon
b50a3f42b1 shell: improve terminal emulation
- emulate alternate screen, snap top of screen in display_hook
- add ShellState.alternate_screen_top
- save and restore cursor
- handle combination marks and wide glyphs in qe_term_get_pos() and
  qe_term_goto_xy()
- erase screen \E[J
- prevent automatic switch to interactive mode in full screen applications
  when moving point to cur_offset. Must use C-o as a toggle.
- notify shell process of window size change with C-l (shell-refresh)
2017-04-26 07:05:42 +00:00
Charlie Gordon
ff1952f5a0 display: improve line wrap handling
- add WRAP_AUTO and WRAP_TERM (for terminal emulator)
  WRAP_AUTO wraps lines if the window is more than 3/4 of the screen width
  if window is narrower, lines are truncated.
  WRAP_TERM does not display the \ wrapping mark to simulate terminal behavior
- add default_wrap member in ModeDef structure
- delegate to view pane for man, ssh and compile commands
2017-04-25 17:41:27 +00:00
Charlie Gordon
5bb58a9c16 display: improve window splitting API
- add EditState *qe_split_window(EditState *s, int prop, int side_by_side);
  takes proportion and direction
- set-trace splits the current window 75/25
- add start-trace-mode
2017-04-25 17:15:03 +00:00
Charlie Gordon
161053d03f dired: update sort order prompt 2017-04-25 17:14:30 +00:00
Charlie Gordon
b66bdb1206 tty: hide cursor during redisplay 2017-04-25 16:58:46 +00:00
Charlie Gordon
d210ba864b charset: improve eol and binary detection
- accept extra CR in badly encoded DOS files
- ignore ^Z in DOS files, do not detect them as binary
2017-04-25 16:56:26 +00:00
Charlie Gordon
d329669530 buffer: new APIs
- int eb_insert_uchars(EditBuffer *b, int offset, int c, int n);
- int eb_replace_uchar(EditBuffer *b, int offset, int c);
- inline eb_insert_spaces() using eb_insert_uchars() instead
- add minp(), maxp() and clampp() with side effect on first argument
- publish ucs2 and ucs4 charsets
2017-04-25 16:46:41 +00:00
Charlie Gordon
59ce60a518 lisp: add xaos-mode 2017-04-25 13:28:41 +00:00
Charlie Gordon
0496b811d8 man-mode: recognise .man files that look like man page source files 2017-04-25 12:52:16 +00:00
Charlie Gordon
72fed2e7a1 display: fixed compilation for linux 2017-04-21 14:50:53 +00:00
Charlie Gordon
eacb2ad6e0 shell: major improvements in tty emulator
terminal emulator:
- add EditState.cols and EditState.rows: window dimensions in characters
- pass target window to new_shell_buffer()
- use window size for shell terminal emulator initial screen size
- set COLUMNS and LINES environment variables for child processes
- factorize emulator character output
- increase number of CSI arguments
- simplify and improve CSI m argument processing including
  multiple argument sequences
- minimal support for `:` as argument separator eg:
  \033[38;5;128:128:128m
- support erase line vt100 command:
  \033[K, \033[0K erase end of line
  \033[1K         erase beginning of line
  \033[2K         erase complete line
debugging:
- pass string argument to set-trace: on, off or list of trace indicators
- remove doctor command
- add QE_TRACE_EMULATE for emulator trace messages
- fix incorrect uses of eb_delete()
2017-04-21 14:44:14 +00:00
Charlie Gordon
bf2cc7c457 html: fix cursor movement functions
- add default versions of move_word_left_right, move_bof
  and move_eof functions
2017-04-21 12:26:44 +00:00
Charlie Gordon
d8180c89c4 display: improve crc because of trivial collisions 2017-04-19 08:20:20 +00:00
Charlie Gordon
89b3ccbda3 clang: detect objective-C header files 2017-04-19 08:14:31 +00:00
Charlie Gordon
a3cba9d3a8 htmlsrc: select on plist files 2017-04-19 08:13:24 +00:00
Charlie Gordon
d1cefb2663 display: improve crc formula to avoid trivial collisions
- use 64 bit checksum values
- use simple formula with fewer collisions.
2017-04-18 14:26:39 +00:00
Charlie Gordon
c57a7c6233 display: small fixes for consistency
- add wrappers in display.h
- renamed tty dpy_xxx handlers for consistency
- separate tty_term_resize called on signal and tty_dpy_invalidate
- add dpy_xor_rectangle for software cursor, remove QECOLOR_XOR
2017-04-18 09:14:55 +00:00
Charlie Gordon
8756b73b0c x11: remove static data
- rename handlers to x11_dpy_xxx
- move almost all static data to X11State structure pointed to
  by QEditScreen.priv_data
2017-04-17 23:06:06 +00:00
Charlie Gordon
7b40bb4f3a display: improve automatic redisplay upon terminal window resize
- signal and detect asynchronous redisplay signal from SIGWINCH
2017-04-17 23:01:21 +00:00
Charlie Gordon
3580b53452 syntax: improve minibuffer and popup handling
- remove static state for minibuffer handling, use mode specific state attached
  to the buffer.
- remove static pointer for the popup last active window.  Use new
  target_window member in EditState.
- remove EditState.minibuf, replaced by WF_MINIBUF flag in EditState.flags
- rename minibuffer commands for consistency
- remove unused global variable debug_flags
- prevent search from minibuffer
- fix toggle-full-screen refresh bug. C-x f is bound to toggle-full-screen
  and could be typed by mistake for C-x C-f, switching to full screen mode
  but with a refresh delay.  This caused confusing behavior interpreted as a
  layout bug.
- make charset_ucs2le, charset_ucs2be, charset_ucs4le, charset_ucs4be local
  in charset.c
- make edit_detach() and edit_attach() local in qe.c
- redraw status and diag messages in edit_display(). This caused display
  bugs in x11 as asynchronous messages were erased by minibuffer window
  refresh.
- display status messages in diag area (bottom right screen corner) if
  minibuffer is active.
- force put_status message update if message starts with !
- force complete_refresh if window was resized or layout was changed
2017-04-17 18:14:15 +00:00
Charlie Gordon
e71273f3af syntax: improve tag display
- increase identifier buffer lengths
- fix some bugs in buffer property handling
2017-04-17 09:16:24 +00:00