• Juri Linkov's avatar
    Text-mode display of the tab-bar and emulation of clicking on a tty. · a365251d
    Juri Linkov authored
    * lisp/tab-bar.el (tab-bar-mouse): New command bound to mouse-1 on [tab-bar].
    * lisp/xt-mouse.el (xterm-mouse-event): Use `tab-bar' when clicking
    on the tab-bar that is on the second row below menu-bar.
    * src/frame.c (set_tab_bar_lines): New function.
    (frame_windows_min_size): Add FRAME_TAB_BAR_LINES.
    (make_initial_frame): Call set_tab_bar_lines.
    (store_frame_param): Call set_tab_bar_lines for Qtab_bar_lines prop.
    (Fframe_parameters): Call store_in_alist for Qtab_bar_lines.
    * src/xdisp.c (display_tab_bar): New function.
    (redisplay_window): Call display_tab_bar when `FRAME_WINDOW_P (f)'
    is NULL on a tty.
xdisp.c 1.07 MB