2
3
4
5
6
7
8
11
12
13
16#include "../ui/ui_ncurses_internal.h"
17#include "ui_backend.h"
18#include <ncursesw/ncurses.h>
19#include <ncursesw/panel.h>
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52#define get_next_char()
56 if (view->file_pos == view->file_size) {
61 c = view->buf[view->file_pos++];
67
68
69
70
71
72
73
74
75#define get_prev_char()
79 if (view->file_pos == 0
) {
84 c = view->buf[--view->file_pos];
90 if ((c = get_cmd_char(view, &n_cmd)) == 'y' || c == 'Y')
92 else if (c == 'n' || c == 'N')
96#define _ui_perror(msg)
98 ssnprintf(em0, MAXLEN - 1
, _("%s, line: %d"), __FILE__, __LINE__ - 2
);
99 strnz__cpy(em1, msg, MAXLEN - 1
);
100 ui_display_error(em0, em1, nullptr, nullptr);
103#define _Refresh(view)
117void lp(View *,
char *);
123bool search(View *,
int,
char *);
143int a_toi(
char *,
bool *);
148void sync_ln(View *, off_t ln_no);
154
155
156
157
158
159
160
161
209
210
211
212
213
214
221 int prev_search_cmd = 0;
225 ssize_t bytes_written;
227 char shell_cmd_spec[
MAXLEN];
231 UiSurface *sfc = view
->sfc;
244 if (c >=
'0' && c <=
'9') {
245 tmp_str[0] = (
char)c;
256 ui_log(INFO,
_(
"Resize key received"));
266
270
271
278
283 else if (n_cmd == 0) {
299 else if (n_cmd == 0) {
380 else if (c ==
'n' || c ==
'N')
396 view
, _(
"view->f_squeeze Multiple Blank lines (Y or N)->"));
402 view
, _(
"Line Wrapping (Y or N)->"));
405 else if (c ==
'n' || c ==
'N')
416 _(
"Tabstop Colums Currently %d:"), view
->tab_stop);
420 if (i >= 1 && i <= 12) {
445 if (prev_search_cmd == 0) {
449 if (prev_search_cmd ==
'/') {
480 prev_search_cmd = search_cmd;
502 prev_search_cmd = search_cmd;
535 if (c ==
'@' || c ==
UIKEY_F09 || c ==
'\033')
536 if (c >=
'A' && c <=
'Z')
538 if (c <
'a' || c >
'z')
547 if (c ==
'@' || c ==
UIKEY_F09 || c ==
'\033')
549 if (c >=
'A' && c <=
'Z')
551 if (c <
'a' || c >
'z')
584 tfd = mkstemp(tmp_str);
640 e = getenv(
"DEFAULTEDITOR");
641 if (e ==
nullptr || *e ==
'\0')
647 _(
"View doesn't support editing current buffer directly"),
654 if (rc !=
'y' && rc !=
'Y')
662 if (bytes_written == 0) {
689 if (bytes_written == 0) {
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
736 UiSurface *sfc = view
->sfc;
744 if (i == 1 && !once) {
753 event
.y = event
.x = -1;
793 if (i < 32 && cmd_str[i] !=
'\0') {
807 if (i < 32 && cmd_str[i] !=
'\0') {
827 if (c <
'0' || c >
'9' || i == 32)
829 cmd_str[i++] = (
char)c;
835 if (c <
'0' || c >
'9' || i == 32)
838 if (cmd_str[0] ==
'\0') {
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
873 UiSurface *sfc = view
->sfc;
891 uint fcol = prompt_l + 1;
892 uint flen = view
->cols - prompt_l;
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
932 if (prompt_l > (view
->cols - 4) / 2)
944 if (prompt_l > (view
->cols - 4) / 2)
965 if (prompt_l > (view
->cols - 4) / 2)
979
980
981
982
983
985 ssize_t bytes_written = 0;
996 if (rc ==
'y' || rc ==
'Y')
999 f_strip_ansi =
false;
1021 bytes_written += write(view
->out_fd, tmp_line_s, l);
1027 return bytes_written;
1030
1031
1042
1043
1044
1045void lp(View *view,
char *PrintFile) {
1046 char *print_cmd_ptr;
1047 char shell_cmd_spec[
MAXLEN];
1048 print_cmd_ptr = getenv(
"PRINTCMD");
1049 if (print_cmd_ptr ==
nullptr || *print_cmd_ptr ==
'\0')
1056
1057
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101bool search(View *view,
int search_cmd,
char *regex_pattern) {
1104 regmatch_t pmatch[1];
1105 regex_t compiled_regex;
1112 memset(&mbstate, 0,
sizeof(mbstate));
1114 wchar_t wstr[2] = {L'\0', L'\0'};
1120 bool f_page =
false;
1121 UiSurface *sfc = view
->sfc;
1122 if (*regex_pattern ==
'\0')
1125 REG_FLAGS = REG_ICASE | REG_EXTENDED;
1127 REG_FLAGS = REG_EXTENDED;
1128 reti = regcomp(&compiled_regex, regex_pattern, REG_FLAGS);
1136 if (search_cmd ==
'/') {
1151 if (search_cmd ==
'/')
1162 if (search_cmd ==
'/') {
1177 compiled_regex.re_nsub + 1, pmatch, REG_FLAGS);
1178 if (reti == REG_NOMATCH) {
1181 if (search_cmd ==
'?')
1185 (search_cmd ==
'?' && view
->cury == 1)) {
1194 regerror(reti, &compiled_regex, err_str,
sizeof(err_str));
1204 if (search_cmd ==
'/') {
1214 if (search_cmd ==
'?')
1216 bool f_first_match =
true;
1222 match_idx = line_offset + pmatch[0].rm_so;
1223 match_len = pmatch[0].rm_eo - pmatch[0].rm_so;
1224 for (uint i = match_idx; i < match_idx + match_len; i++) {
1227 ui_get_cell(view->sfc, PAD, &cc, wstr, &attrs, &cpx,
nullptr);
1229 ui_set_cell(view->sfc, PAD, &cc, wstr, attrs, cpx,
nullptr);
1231 cc.channels = cell_nt_rev.channels;
1235 if (f_first_match) {
1236 f_first_match =
false;
1240 line_offset += pmatch[0].rm_eo;
1241 if (line_offset >= line_len)
1245 compiled_regex.re_nsub + 1, pmatch, REG_FLAGS);
1246 if (reti == REG_NOMATCH)
1250 regerror(reti, &compiled_regex, msgbuf,
sizeof(msgbuf));
1251 sprintf(tmp_str,
_(
"Regex match failed: %s"), msgbuf);
1256 if (search_cmd ==
'/') {
1260 }
else if (view
->cury == 1) {
1268 regfree(&compiled_regex);
1274
1275
1277
1278
1279
1280
1281
1282
1289 uint scroll, avail, scroll_this_line;
1293 while (scroll > 0) {
1313 scroll_this_line =
min(scroll, avail);
1314 scroll -= scroll_this_line;
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1363
1364
1365
1366
1371 UiSurface *sfc = view
->sfc;
1388#ifdef DEBUG_IMMED_UI
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1423 UiSurface *sfc = view
->sfc;
1443 ui_mvwadd_wchstr(sfc, PAD, view->cury, 0, (
struct nccell *)view->cmplx_buf);
1452
1453
1454
1455
1456
1457
1458
1459
1460
1463 UiSurface *sfc = view
->sfc;
1503
1504
1505
1506
1507
1508
1509
1511 UiSurface *sfc = view
->sfc;
1522
1523
1524
1525
1526
1527
1529 uint scroll, scroll_this_line, avail;
1531 UiSurface *sfc = view
->sfc;
1538 while (scroll > 0) {
1555 scroll_this_line =
min(scroll, avail);
1556 scroll -= scroll_this_line;
1571 while (scroll > 0) {
1591 scroll_this_line =
min(scroll, avail);
1592 scroll -= scroll_this_line;
1637 while (scroll > 0) {
1658
1659
1660
1661
1662
1663
1664
1666 uint scroll, avail, scroll_this_line;
1676 UiSurface *sfc = view
->sfc;
1694 while (scroll > 0) {
1716 scroll_this_line =
min(scroll, avail);
1717 scroll -= scroll_this_line;
1732 while (scroll > 0) {
1750 while (scroll > 0) {
1771 scroll_this_line =
min(scroll, avail);
1772 scroll -= scroll_this_line;
1788 while (scroll > 0) {
1808
1828 if (c ==
'\n' || c ==
'\0')
1848 if (c !=
'\n' && c !=
'\0')
1866
1867
1868
1869
1892
1893
1894
1895
1906
1907
1908
1909
1910
1911
1925
1926
1927
1928
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1947 off_t prev_ln_no = 0;
1948 while (low <= high) {
1949 off_t guess = low + (high - low) / 2;
1950 if (view
->ln_tbl[guess] == position)
1952 if (view
->ln_tbl[guess] < position) {
1961
1962
1963
1964
1965
1966
1967
1980
1981
1982
1983
1984
1985
1986
1997
1998
1999
2000
2001
2002
2003
2004
2005
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2071
2072
2073
2075
2076
2078
2079
2080
2081
2082
2098 ui_log(ERROR,
_(
"%s:%d prefresh(view->sfc->mwin[WIN2], pminrow=%d, pmincol=%d, smaxrow=%d, smaxcol=%d) returned %d\n"),
__FILE__, __LINE__ - 1
, view
->pminrow, view
->pmincol, view
->smaxrow, view
->smaxcol, rc);
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2122 uint i = 0, j = 0, x = 0;
2124 uint tab_spaces = 0;
2129 wchar_t wstr[2] = {L'\0', L'\0'};
2133 uint word_cells = 0;
2145 memset(&mbstate, 0,
sizeof(mbstate));
2157 while (in_str[i] !=
'\0' && i <=
PAD_COLS - 1) {
2159 if (in_str[i] ==
'\033') {
2160 if (in_str[i + 1] ==
'[') {
2161 len = strcspn(&in_str[i],
"mK ") + 1;
2162 memcpy(ansi_tok, &in_str[i], len + 1);
2163 ansi_tok[len] =
'\0';
2164 if (ansi_tok[0] ==
'\0') {
2169 if (len == 0 || in_str[i + len - 1] ==
' ') {
2172 }
else if (in_str[i + len - 1] ==
'K') {
2183 if (in_str[i] ==
' ' || in_str[i] ==
'-') {
2184 if (view
->wrap && (sl_cols + word_cols) > (sl_maxlen - 1))
2186 (in_str[i] ==
'-') ? (wstr[0] = L'-') : (wstr[0] = L' ');
2188 ui_set_cell(view->sfc, PAD, &cc, wstr, attrs, cpx,
nullptr);
2190 cmplx_buf[j++] = cc;
2192 sl_cols += word_cols + 1;
2194 sl_cells += word_cells + 1;
2200 if (in_str[i] ==
'\0') {
2202 if (sl_cols + word_cols + 1 > sl_maxlen - 1)
2204 sl_cols += word_cols;
2206 sl_cells += word_cells;
2211 if (in_str[i] ==
'\t') {
2213 if (view
->wrap && sl_cols + word_cols + tab_spaces > sl_maxlen - 1)
2217 ui_set_cell(view->sfc, PAD, &cc, wstr, attrs, cpx,
nullptr);
2218 for (uint z = 0; z < tab_spaces; z++) {
2220 cmplx_buf[j++] = cc;
2223 sl_cols += word_cols + tab_spaces;
2225 sl_cells += word_cells + tab_spaces;
2232 len = mbrtowc(wstr, &in_str[i], MB_CUR_MAX, &mbstate);
2238 char_width = wcwidth(wstr[0]);
2239 if (char_width < 0) {
2251 for (
int n = 1; n < char_width; n++)
2258 ui_set_cell(view->sfc, PAD, &cc, wstr, attrs, cpx,
nullptr);
2261 ui_set_cell(view->sfc, PAD, &cc, wstr, attrs, cpx,
nullptr);
2262 cmplx_buf[j++] = cc;
2265 word_cols += char_width;
2271 if (word_cols > 0) {
2272 if (sl_cols <= sl_maxlen) {
2278 sl_s = &sl_s[sl_cols];
2279 sl_cc = &sl_cc[sl_cells];
2281 sl_cols = word_cols;
2282 sl_cells = word_cells;
2287 while (sl_cols > sl_maxlen - 1) {
2288 uint safe_cells = 0;
2290 while (safe_cols < sl_maxlen && safe_cells < sl_cells) {
2294 ui_get_cell(view->sfc, PAD, &sl_cc[safe_cells], wstr_chk, &attr_chk, &cpx_chk,
nullptr);
2295 uint cw = wcwidth(wstr_chk[0]);
2296 if (safe_cols + cw > sl_maxlen)
2301 if (safe_cells == 0) {
2303 safe_cols = sl_maxlen;
2310 sl_s = &sl_s[safe_cells];
2311 sl_cc = &sl_cc[safe_cells];
2313 sl_cols -= safe_cols;
2314 sl_cells -= safe_cells;
2344 ui_set_cell(view->sfc, PAD, &cc, wstr,
WA_NORMAL, cpx,
nullptr);
2350
2351
2352
2353
2354
2355
2356
2361 memset(tmp_str, 0,
sizeof(tmp_str));
2364 ui_log(INFO,
"%s:", tmp_str);
2368
2369
2370
2371
2372
2373
2374
2375
2376
2381 memset(tmp_str, 0,
sizeof(tmp_str));
2386 ui_get_cell(view->sfc, PAD, &view
->cur.sl_cc[k][c], wstr, &attrs, &cpx,
nullptr);
2387 if (wstr[0] == L'\0')
2390 tmp_str[c] = (
char)wstr[0];
2392 ui_log(INFO,
"%s:", tmp_str);
2396
2397
2398
2399
2400
2401
2402
2406 ui_log(INFO,
"%s:", tmp_str);
2409
2410
2411
2412
2413
2414
2415
2421 memset(tmp_str, 0,
sizeof(tmp_str));
2428 ui_log(INFO,
"%s:", tmp_str);
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2492 uint fg_clr, bg_clr;
2493 char *ansi_p = ansi_str + 2;
2499 tok = strtok((
char *)ansi_p,
";m");
2500 bool a_toi_error =
false;
2502 if (tok ==
nullptr || *tok ==
'\0')
2508 if (t0 ==
'3' || t0 ==
'4') {
2510 tok = strtok(
nullptr,
";m");
2511 if (tok !=
nullptr) {
2513 tok = strtok(
nullptr,
";m");
2514 if (tok !=
nullptr) {
2519 }
else if (*tok ==
'2') {
2520 tok = strtok(
nullptr,
";m");
2521 if (tok !=
nullptr) {
2523 tok = strtok(
nullptr,
";m");
2524 if (tok !=
nullptr) {
2526 tok = strtok(
nullptr,
";m");
2527 if (tok !=
nullptr) {
2541 }
else if (t1 ==
'9') {
2546 }
else if (t1 >=
'0' && t1 <=
'7') {
2553 }
else if (t0 ==
'4') {
2561 }
else if (t0 ==
'0') {
2572 switch (
a_toi(tok
, &a_toi_error
)) {
2598 }
else if (len == 0) {
2603 tok = strtok(
nullptr,
";m");
2605 if (!a_toi_error && (fg_clr != fg || bg_clr != bg))
2610
2611
2612
2616 UiSurface *sfc = view
->sfc;
2629#ifdef DEBUG_IMMED_UI
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2666 eargv[eargc++] = strdup(
"view");
2667 eargv[eargc++] = strdup(
"-N");
2668 eargv[eargc++] = strdup(tmp_str);
2669 eargv[eargc] =
nullptr;
2681
2682
2684
2685
2686
2687
2688
2689
2690
2691
2714 while (rc ==
false) {
2717 view
->in_fd = mkstemp(tmp_spec);
2728
2739 tmp_fp = fopen(tmp_spec,
"r");
2740 if (tmp_fp ==
nullptr) {
2749 fgets(tmp_str,
MAXLEN - 1, tmp_fp);
2759 if (rc ==
'y' || rc ==
'Y')
int popup_form(Init *, int, char **, uint, uint)
instantiate a form popup window
int popup_view(Init *, int, char **, uint, uint, uint, uint)
instantiate a view popup window
size_t rtrim(char *)
Trims trailing spaces from string s in place.
void ui_render()
Render the UI by updating panels and refreshing the display.
void ui_getyx(UiSurface *s, ss_t w, uint *lines, uint *cols)
Get the current cursor position within a window of a UI surface.
int ui_cursor_enable_yx(UiSurface *s, ss_t w, uint y, uint x, bool visible)
Enable or disable the cursor at a specific position within a UiSurface.
int ui_wscrl(UiSurface *s, ss_t w, int rows)
Scroll the contents of a UiSurface by a specified number of lines.
int ui_cursor_move(UiSurface *s, ss_t w, uint y, uint x)
Move the cursor to a specified position within a UiSurface.
void ui_surface_destroy(UiSurface *s)
Destroy a UiSurface, cleaning up its windows and panels.
void ui_restore_wins()
Restore the state of all windows in the UI. This function refreshes the standard screen and all surfa...
int ui_prefresh(UiSurface *s, ss_t w, int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol)
void ui_get_screen_size(uint *lines, uint *cols)
Get the current screen size (number of lines and columns).
int ui_wclrtobot(UiSurface *s, ss_t w)
Set the style of a surface window.
int ui_top_surface(UiSurface *s, ss_t w)
Hide a UiSurface, making it invisible on the screen.
int ui_wclrtoeol(UiSurface *s, ss_t w)
Clear to the end of the line in a surface window.
int ui_bkgdset(UiSurface *s, ss_t w, const UiCell *cell)
Set the background for new content to be written to a specific window within a UiSurface.
void go_to_position(View *, long)
#define UIKEY_SCROLL_DOWN
int ui_get_event(UiSurface *s, ss_t w, UiChyron *chyron, UiEvent *ev, int timeout_ms)
Read input events.
RGB ui_xterm256_idx_to_rgb(uint idx)
Convert XTerm 256 color index to RGB.
int ui_border_title(UiSurface *sfc, ss_t w, const char *title)
Draw a box with a title around the specified window.
void ui_log_write(const UiLogLevel level, const char *file, const char *func, const int line, const char *fmt,...)
int ui_pair_content(uint pair, uint *fg, uint *bg)
Get the foreground and background colors of a specified color pair.
uint ui_add_pair(uint fg, uint bg)
Add a new color pair to the UI, or retrieve the index of an existing pair.
int ui_color_from_rgb(RGB *rgb)
Convert RGB to curses color index, adding new color if necessary.
int ui_mvwadd_wchnstr(UiSurface *s, ss_t w, uint y, uint x, const UiCell *cmplx_buf, uint n)
Draw a complex character string at a specific position in a surface window, with a maximum length.
int ui_waddstr(UiSurface *s, ss_t w, const char *text)
Draw a text string in a surface window.
int ui_mvwaddch(UiSurface *s, ss_t w, uint y, uint x, const char c)
Draw a character in a surface window.
int ui_mvwadd_wchstr(UiSurface *s, ss_t w, uint y, uint x, const UiCell *cmplx_buf)
Draw a complex character string at a specific position in a surface window.
int ui_mvwaddstr(UiSurface *s, ss_t w, uint y, uint x, const char *text)
Draw a text string at a specific position in a surface window.
int ui_mvwadd_wch(UiSurface *s, ss_t w, uint y, uint x, const UiCell *cell)
Draw a complex character at a specific position in a surface window.
int ui_wadd_wchnstr(UiSurface *s, ss_t w, const UiCell *cmplx_buf, uint n)
Draw a complex character string in a surface window, with a maximum length.
void view_full_screen_resize(Init *)
Resize the full screen view and its components.
void view_boxwin_resize(Init *)
Resize the current window and its box.
char prev_regex_pattern[MAXLEN]
void get_line(View *, off_t)
void sync_pos(View *, off_t pos)
int cf_accept(UiSurface *sfc, ss_t w, char *accept_s, uint flin, uint fcol, uint flen)
Accepts input for a field in a C-Menu window.
int shell(char *)
Execute a shell command.
int full_screen_shell(char *)
Execute a shell command in full screen mode.
size_t strnz__cpy(char *, const char *, size_t)
safer alternative to strncpy
size_t strnz(char *, size_t)
terminates string at New Line, Carriage Return, or max_len
size_t ssnprintf(char *, size_t, const char *,...)
Custom safe string formatting utility (Variadic version).
int str_to_args(char **, char *, uint)
Converts a string into an array of argument strings.
bool expand_tilde(char *, uint)
Expand a tilde (~) in a file path to the user's home directory.
char size_t strip_ansi(char *, char *)
Strips ANSI SGR escape sequences (ending in 'm') from string s to d.
bool mk_dir(char *dir)
If directory doesn't exist, make it.
size_t strnz__cat(char *, const char *, size_t)
safer alternative to strncat
size_t strnlf(char *, size_t)
terminates string with line feed
int a_toi(char *, bool *)
a safer alternative to atoi() for converting ASCII strings to integers.
bool str_subc(char *, char *, char, char *, uint)
Replaces "ReplaceChr" in "s" with "Withstr" in "d" won't copy more than "l" bytes to "d" Replaces all...
char * strerror__r(int errnum, char *buf, size_t buflen)
A thread-safe alternative to strerror() that writes the error message corresponding to errnum into th...
int destroy_argv(uint argc, char **argv)
Deallocates memory allocated for argument strings in argv.
bool base_name(char *, char *)
Returns the base name of a file specification.
int view_init_input(Init *init, char *file_name)
Initialize the input for the C-Menu View.
bool verify_spec_arg(char *, char *, char *, char *, uint)
Verify file specification argument.
int view_file(Init *)
Start view.
bool enter_file_spec(Init *, char *)
use form to enter a file specification
int write_view_buffer(Init *, bool)
Write buffer contents to files.
void lp(View *, char *)
Send File to Print Queue.
#define get_prev_char()
read the previous characater from the virtual fileThere is no need to track line numbers when moving ...
void cat_file(View *)
Concatenate File to Standard Output.
int get_cmd_arg(View *, char *)
Get Command Argument from User Input.
int view_cmd_processor(Init *)
Main Command Processing Loop for View.
int get_cmd_char(View *, off_t *)
Get Command Character from User Input.
void build_prompt(View *)
Build Prompt String.
#define get_next_char()
read the next characater from the virtual file
void go_to_percent(View *, uint)
Go to Percent of File.
off_t line_number(View *, off_t)
Get Line Number for a Given File Position.
void go_to_eof(View *)
Go to End of File.
void go_to_mark(View *, uint)
Go to Mark.
void page_prev(View *)
display previous page
void initialize_line_table(View *)
Initialize Line Table.
bool search(View *, int, char *)
Search for Regular Expression Pattern.
void destroy_line_table(View *)
Destroy Line Table.
int go_to_line(View *, off_t)
Go to Specific Line.
void page_next(View *)
Advance to Next Page.
void scroll_next(View *view, uint n)
Scroll Down by n Lines.
void increment_ln(View *)
Increment Line Index and Update Line Table.
void scroll_prev(View *view, uint n)
Move the view scope n lines toward the beginning of the file.
void sync_ln(View *, off_t ln_no)
Synchronize Line Table with Current File Position.
void log_cc_buf(View *)
Log Complex Character Buffer.
void log_split_lines(View *)
Log Split Lines.
void display_line(View *)
Display Line on Padparam View *view data structure.
int pad_refresh(View *)
Refresh Pad and Line Number Window.
void display_line_eod(View *)
Display End of Data.
int display_prompt(View *, char *)
Display Command Line Prompt.
void parse_ansi_str(char *, attr_t *, ushort *)
Parse ANSI SGR Escape Sequence.
void log_strnz(char *, uint)
Log String with Specified Length.
int fmt_line(View *)
Format Line for Display.
void display_split_line(View *)
Display Split Line on Pad.
void view_display_help(Init *)
Display View Help File.
void view_display_page(View *)
Display Current Page.
void log_stripped_line_out(View *)
Log Stripped Line Output.
int ui_perror(char *emsg_str)
Display a simple error message window or print to stderr.
int ui_answer_yn(char *msg0, char *msg1, char *msg2, char *msg3)
Accept a single letter answer.
int ui_display_error(char *msg0, char *msg1, char *msg2, char *msg3)
Display an error message window or print to stderr.
char stripped_line_out[PAD_COLS+1]
char line_in_s[PAD_COLS+1]
char * next_file_spec_ptr
char line_out_s[PAD_COLS+1]
UiCell cmplx_buf[PAD_COLS+1]
char cur_file_str[MAXLEN]