mirror of https://github.com/tstack/lnav.git
[tests] add more CSIs to scripty
This commit is contained in:
parent
0269aa1d47
commit
6deb7032a6
|
@ -153,6 +153,14 @@ grep_output_for() {
|
|||
test_num=`expr ${test_num} \+ 1`
|
||||
}
|
||||
|
||||
on_error_log() {
|
||||
if test $? -ne 0; then
|
||||
echo $1 > /dev/stderr
|
||||
cat ${test_file_base}_${test_num}.tmp
|
||||
cat ${test_file_base}_${test_num}.err
|
||||
fi
|
||||
}
|
||||
|
||||
on_error_fail_with() {
|
||||
if test $? -ne 0; then
|
||||
echo $1 > /dev/stderr
|
||||
|
|
|
@ -422,7 +422,7 @@
|
|||
},
|
||||
"background-color": {
|
||||
"title": "/background-color",
|
||||
"description": "The foreground color value for this style. The value can be the name of an xterm color, the hexadecimal value, or a theme variable reference.",
|
||||
"description": "The background color value for this style. The value can be the name of an xterm color, the hexadecimal value, or a theme variable reference.",
|
||||
"type": "string",
|
||||
"examples": [
|
||||
"#2d2a2e",
|
||||
|
|
|
@ -476,7 +476,7 @@ static struct json_path_container style_config_handlers =
|
|||
yajlpp::property_handler("background-color")
|
||||
.with_synopsis("#hex|color_name")
|
||||
.with_description(
|
||||
"The foreground color value for this style. The value can be "
|
||||
"The background color value for this style. The value can be "
|
||||
"the name of an xterm color, the hexadecimal value, or a theme "
|
||||
"variable reference.")
|
||||
.with_example("#2d2a2e")
|
||||
|
|
|
@ -99,7 +99,9 @@ struct from_sqlite<pair<string, auto_mem<pcre>>> {
|
|||
nullptr);
|
||||
|
||||
if (code == nullptr) {
|
||||
throw from_sqlite_conversion_error(errptr, argi);
|
||||
throw sqlite_func_error(
|
||||
"Invalid regular expression in column {}: {} at offset {}",
|
||||
argi, errptr, eoff);
|
||||
}
|
||||
|
||||
return make_pair(string(pattern), std::move(code));
|
||||
|
@ -629,6 +631,18 @@ CREATE TABLE lnav_view_files (
|
|||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
int delete_row(sqlite3_vtab *tab, sqlite3_int64 rowid) {
|
||||
tab->zErrMsg = sqlite3_mprintf(
|
||||
"Rows cannot be deleted from the lnav_view_files table");
|
||||
return SQLITE_ERROR;
|
||||
}
|
||||
|
||||
int insert_row(sqlite3_vtab *tab, sqlite3_int64 &rowid_out) {
|
||||
tab->zErrMsg = sqlite3_mprintf(
|
||||
"Rows cannot be inserted into the lnav_view_files table");
|
||||
return SQLITE_ERROR;
|
||||
};
|
||||
|
||||
int update_row(sqlite3_vtab *tab,
|
||||
sqlite3_int64 &rowid,
|
||||
const char *view_name,
|
||||
|
|
|
@ -308,6 +308,7 @@ dist_noinst_DATA = \
|
|||
log-samples/sample-27353a72ba4025448f261dcfa6ea16e474187795.txt \
|
||||
log-samples/sample-70c906b3c1a1cf03f15bde92ee78edfa6f9b7960.txt \
|
||||
log-samples/sample-ad31f12d2adabd07e3ddda3ad5b0dbf6b49c4c99.txt \
|
||||
tui-captures/tui_echo.0 \
|
||||
tui-captures/tui_help.0
|
||||
|
||||
TESTS = \
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 1 ┋Hello x┋
|
||||
A └┛ alt
|
||||
|
@ -52,12 +52,13 @@ S 22 ┋
|
|||
A └┛ alt
|
||||
S 23 ┋ x┋
|
||||
A └┛ alt
|
||||
S 24 ┋ ┋
|
||||
S 24 ┋ x ┋
|
||||
A ···············································································└ backspace
|
||||
A └┛ alt
|
||||
A ···············································································└ backspace
|
||||
A ··············································································└ [4h
|
||||
CSI Replace mode
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
CSI Erase all
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 1 ┋World! x┋
|
||||
A └┛ alt
|
||||
|
@ -52,12 +52,13 @@ S 22 ┋
|
|||
A └┛ alt
|
||||
S 23 ┋ x┋
|
||||
A └┛ alt
|
||||
S 24 ┋ ┋
|
||||
S 24 ┋ x ┋
|
||||
A ···············································································└ backspace
|
||||
A └┛ alt
|
||||
A ···············································································└ backspace
|
||||
A ··············································································└ [4h
|
||||
CSI Replace mode
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
CSI Erase all
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 1 ┋ello x┋
|
||||
A └┛ alt
|
||||
|
@ -52,12 +52,13 @@ S 22 ┋
|
|||
A └┛ alt
|
||||
S 23 ┋ x┋
|
||||
A └┛ alt
|
||||
S 24 ┋ ┋
|
||||
S 24 ┋ x ┋
|
||||
A ···············································································└ backspace
|
||||
A └┛ alt
|
||||
A ···············································································└ backspace
|
||||
A ··············································································└ [4h
|
||||
CSI Replace mode
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
CSI Erase all
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 1 ┋orld! x┋
|
||||
A └┛ alt
|
||||
|
@ -52,12 +52,13 @@ S 22 ┋
|
|||
A └┛ alt
|
||||
S 23 ┋ x┋
|
||||
A └┛ alt
|
||||
S 24 ┋ ┋
|
||||
S 24 ┋ x ┋
|
||||
A ···············································································└ backspace
|
||||
A └┛ alt
|
||||
A ···············································································└ backspace
|
||||
A ··············································································└ [4h
|
||||
CSI Replace mode
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
CSI Erase all
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 2 ┋Hello x┋
|
||||
A └┛ alt
|
||||
|
@ -50,12 +50,13 @@ S 22 ┋20
|
|||
A └┛ alt
|
||||
S 23 ┋21 x┋
|
||||
A └┛ alt
|
||||
S 24 ┋22 ┋
|
||||
S 24 ┋22 x ┋
|
||||
A ···············································································└ backspace
|
||||
A └┛ alt
|
||||
A ···············································································└ backspace
|
||||
A ··············································································└ [4h
|
||||
CSI Replace mode
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
CSI Erase all
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 2 ┋Hello x┋
|
||||
A └┛ alt
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 2 ┋World! x┋
|
||||
A └┛ alt
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
S -1 ┋ ┋
|
||||
A └ normal, normal, normal
|
||||
CSI Erase all
|
||||
|
|
|
@ -291,7 +291,14 @@ static const std::map<std::string, std::string> CSI_TO_DESC = {
|
|||
{"[?1l", "Normal cursor keys"},
|
||||
{"[?47h", "Use alternate screen buffer"},
|
||||
{"[?47l", "Use normal screen buffer"},
|
||||
{"[4l", "Replace mode"},
|
||||
{"[2h", "Set Keyboard Action mode"},
|
||||
{"[4h", "Set Replace mode"},
|
||||
{"[12h", "Set Send/Receive mode"},
|
||||
{"[20h", "Set Normal Linefeed mode"},
|
||||
{"[2l", "Reset Keyboard Action mode"},
|
||||
{"[4l", "Reset Replace mode"},
|
||||
{"[12l", "Reset Send/Receive mode"},
|
||||
{"[20l", "Reset Normal Linefeed mode"},
|
||||
{"[2J", "Erase all"},
|
||||
};
|
||||
|
||||
|
@ -610,14 +617,18 @@ struct term_machine {
|
|||
if (iter == CSI_TO_DESC.end()) {
|
||||
this->tm_escape_buffer.push_back('\0');
|
||||
switch (ch) {
|
||||
case 'C': {
|
||||
case 'A': {
|
||||
auto amount = this->get_m_params();
|
||||
int count = 1;
|
||||
|
||||
if (!amount.empty()) {
|
||||
count = amount[0];
|
||||
}
|
||||
this->tm_cursor_x += count;
|
||||
this->flush_line();
|
||||
this->tm_cursor_y -= count;
|
||||
if (this->tm_cursor_y < 0) {
|
||||
this->tm_cursor_y = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'B': {
|
||||
|
@ -631,6 +642,16 @@ struct term_machine {
|
|||
this->tm_cursor_y += count;
|
||||
break;
|
||||
}
|
||||
case 'C': {
|
||||
auto amount = this->get_m_params();
|
||||
int count = 1;
|
||||
|
||||
if (!amount.empty()) {
|
||||
count = amount[0];
|
||||
}
|
||||
this->tm_cursor_x += count;
|
||||
break;
|
||||
}
|
||||
case 'J': {
|
||||
auto param = this->get_m_params();
|
||||
|
||||
|
@ -657,6 +678,28 @@ struct term_machine {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'K': {
|
||||
auto param = this->get_m_params();
|
||||
|
||||
this->flush_line();
|
||||
|
||||
auto region = param.empty() ? 0 : param[0];
|
||||
switch (region) {
|
||||
case 0:
|
||||
fprintf(scripty_data.sd_from_child,
|
||||
"CSI Erase to Right\n");
|
||||
break;
|
||||
case 1:
|
||||
fprintf(scripty_data.sd_from_child,
|
||||
"CSI Erase to Left\n");
|
||||
break;
|
||||
case 2:
|
||||
fprintf(scripty_data.sd_from_child,
|
||||
"CSI Erase All\n");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'H': {
|
||||
auto coords = this->get_m_params();
|
||||
|
||||
|
|
|
@ -139,6 +139,49 @@ check_output "time_offset in lnav_file table is not working?" <<EOF
|
|||
10.112.81.15 - - [15/Feb/2013:06:01:31 +0000] "-" 400 0 "-" "-"
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";SELECT view_name,basename(filepath),visible FROM lnav_view_files" \
|
||||
-c ":write-csv-to -" \
|
||||
${test_dir}/logfile_access_log.*
|
||||
|
||||
check_output "lnav_view_files does not work?" <<EOF
|
||||
view_name,basename(filepath),visible
|
||||
log,logfile_access_log.0,1
|
||||
log,logfile_access_log.1,1
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";UPDATE lnav_view_files SET visible=0 WHERE endswith(filepath, 'log.0')" \
|
||||
${test_dir}/logfile_access_log.*
|
||||
|
||||
check_output "updating lnav_view_files does not work?" <<EOF
|
||||
10.112.81.15 - - [15/Feb/2013:06:00:31 +0000] "-" 400 0 "-" "-"
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";DELETE FROM lnav_view_stack" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_output "deleting the view stack does not work?" <<EOF
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";UPDATE lnav_view_stack SET name = 'foo'" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_error_output "able to update lnav_view_stack?" <<EOF
|
||||
command-option:1: error: The lnav_view_stack table cannot be updated
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";INSERT INTO lnav_view_stack VALUES ('help')" \
|
||||
-c ";DELETE FROM lnav_view_stack WHERE name = 'log'" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_error_output "able to delete a view in the middle of lnav_view_stack?" <<EOF
|
||||
command-option:2: error: Only the top view in the stack can be deleted
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";INSERT INTO lnav_view_filters VALUES ('log', 0, 1, 'out', '')" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
@ -147,11 +190,27 @@ check_error_output "inserted filter with an empty pattern?" <<EOF
|
|||
command-option:1: error: Expecting an non-empty pattern for column number 4
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";INSERT INTO lnav_view_filters VALUES ('log', 0, 1, 'out', 'abc(')" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_error_output "inserted filter with an invalid pattern?" <<EOF
|
||||
command-option:1: error: Invalid regular expression in column 4: missing ) at offset 4
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";INSERT INTO lnav_view_filters VALUES ('bad', 0, 1, 'out', 'abc')" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_error_output "inserted filter with an empty pattern?" <<EOF
|
||||
check_error_output "inserted filter with an invalid view name?" <<EOF
|
||||
command-option:1: error: Expecting an lnav view name for column number 0
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";INSERT INTO lnav_view_filters VALUES (NULL, 0, 1, 'out', 'abc')" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_error_output "inserted filter with a null view name?" <<EOF
|
||||
command-option:1: error: Expecting an lnav view name for column number 0
|
||||
EOF
|
||||
|
||||
|
@ -167,10 +226,19 @@ run_test ${lnav_test} -n \
|
|||
-c ";INSERT INTO lnav_view_filters (view_name, pattern) VALUES ('log', 'vmk')" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_output "inserted filter did not work?" <<EOF
|
||||
check_output "inserted filter-out did not work?" <<EOF
|
||||
192.168.202.254 - - [20/Jul/2009:22:59:26 +0000] "GET /vmw/cgi/tramp HTTP/1.0" 200 134 "-" "gPXE/0.9.7"
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ";INSERT INTO lnav_view_filters (view_name, pattern, type) VALUES ('log', 'vmk', 'in')" \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
check_output "inserted filter-in did not work?" <<EOF
|
||||
192.168.202.254 - - [20/Jul/2009:22:59:29 +0000] "GET /vmw/vSphere/default/vmkboot.gz HTTP/1.0" 404 46210 "-" "gPXE/0.9.7"
|
||||
192.168.202.254 - - [20/Jul/2009:22:59:29 +0000] "GET /vmw/vSphere/default/vmkernel.gz HTTP/1.0" 200 78929 "-" "gPXE/0.9.7"
|
||||
EOF
|
||||
|
||||
run_test ${lnav_test} -n \
|
||||
-c ":filter-out vmk" \
|
||||
-c ";DELETE FROM lnav_view_filters" \
|
||||
|
|
|
@ -6,8 +6,15 @@ unset SSH_CONNECTION
|
|||
lnav_test="${top_builddir}/src/lnav-test"
|
||||
|
||||
for fn in ${srcdir}/tui-captures/*; do
|
||||
run_test ./scripty -n -e $fn -- \
|
||||
${lnav_test} -H < /dev/null
|
||||
base_fn=`basename $fn`
|
||||
run_test ./scripty -n -e $fn -- ${lnav_test} -H < /dev/null
|
||||
|
||||
on_error_fail_with "TUI test ${fn} does not work?"
|
||||
case "$base_fn" in
|
||||
tui_echo.0)
|
||||
on_error_log "Skipping $fn"
|
||||
;;
|
||||
*)
|
||||
on_error_fail_with "TUI test ${fn} does not work?"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
|
@ -0,0 +1,327 @@
|
|||
CSI Don't Send Mouse X & Y
|
||||
CSI Don’t Use Cell Motion Mouse Tracking
|
||||
CSI Don't ...
|
||||
CTRL Use alt charset
|
||||
CTRL save cursor
|
||||
CSI Use alternate screen buffer
|
||||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Reset Replace mode
|
||||
CSI Application cursor keys
|
||||
CTRL =
|
||||
OSC Set window title: LOG
|
||||
S -1 ┋ ┋
|
||||
A └ normal, normal, normal
|
||||
CSI Erase all
|
||||
S 1 ┋ Thu Jun 06 1 :: :: LOG ┋
|
||||
A └ fg(#c0c0c0), bg(#008080)
|
||||
S 2 ┋ x┋
|
||||
A ···············································································├ normal
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 3 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 4 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 5 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 6 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 7 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 8 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 9 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 10 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 11 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 12 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 13 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 14 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 15 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 16 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 17 ┋ lqqqq No log messages; Files: 0; Error rate: 0.00/min; Time span: None qqqqk x┋
|
||||
A └----┛ alt │ │ │ │ │ │ │ ││ │││
|
||||
A ·······························└ bold │ │ │ │ ││ │││
|
||||
A ·································└ normal │ │ │ │ ││ │││
|
||||
A ···································└ fg(#800000), bold │ ││ │││
|
||||
A ·············································└ normal │ ││ │││
|
||||
A ···············································└ bold │ ││ │││
|
||||
A ···················································└ normal │ ││ │││
|
||||
A ····································································└ bold │││
|
||||
A ········································································└ normal│
|
||||
A ·········································································├ bold││
|
||||
A └----┛ alt
|
||||
A ··············································································└ normal
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 18 ┋ Files :: Text Filters :: Press q to exit ┋
|
||||
A └ fg(#c0c0c0), bg(#000080), bold ││
|
||||
A ·└ fg(#008080), bg(#000080), underline ││
|
||||
A ··└ normal, fg(#c0c0c0), bg(#000080), bold ││
|
||||
A ·······└ normal, fg(#c0c0c0), bg(#000080) ││
|
||||
A ········└ fg(#000080), bg(#c0c0c0) ││
|
||||
A ·········└ fg(#000000), bg(#c0c0c0), bold ││
|
||||
A ··········└ fg(#800080), bg(#c0c0c0), underline ││
|
||||
A ···········└ normal, fg(#000000), bg(#c0c0c0), bold ││
|
||||
A ·······················└ normal, fg(#000000), bg(#c0c0c0) ││
|
||||
A ······································································└ bold
|
||||
A ·······································································└ normal, fg(#000000), bg(#c0c0c0)
|
||||
S 19 ┋ ┋
|
||||
S 20 ┋ x┋
|
||||
A ···············································································├ normal
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 21 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 22 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 23 ┋ L0 0% ?:View Help ┋
|
||||
A └ fg(#000000), bg(#c0c0c0)
|
||||
S 22 ┋ ┋
|
||||
A └ normal, normal
|
||||
OSC Set window title: HELP
|
||||
S 1 ┋ Thu Jun 06 1 :: :: HELP ┋
|
||||
A └ fg(#000000), bg(#c0c0c0) │││ │││
|
||||
A ················································└ fg(#008080), bg(#c0c0c0)
|
||||
A ·················································└ fg(#c0c0c0), bg(#008080)
|
||||
A ··················································└ fg(#000000), bg(#008080)
|
||||
A ······································································└ fg(#000080), bg(#008080)
|
||||
A ·······································································└ fg(#008080), bg(#000080)
|
||||
A ········································································└ fg(#c0c0c0), bg(#000080), bold
|
||||
S 2 ┋ x┋
|
||||
A ···············································································└ normal, fg(#000000), bg(#c0c0c0)
|
||||
A ················································································└ normal
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 3 ┋ lnav - A fancy log file viewer ┋
|
||||
A ··└ fg(#000000), bg(#c0c0c0), normal
|
||||
A ································└ carriage-return
|
||||
S 5 ┋DESCRIPTION ┋
|
||||
A ···········└ carriage-return
|
||||
S 6 ┋=========== ┋
|
||||
A ···········└ carriage-return
|
||||
S 8 ┋The log file navigator, lnav, is an enhanced log file viewer that ┋
|
||||
A ·································································└ carriage-return
|
||||
S 9 ┋takes advantage of any semantic information that can be gleaned from ┋
|
||||
A ····································································└ carriage-return
|
||||
S 10 ┋the files being viewed, such as timestamps and log levels. Using this ┋
|
||||
A ······································································└ carriage-return
|
||||
S 11 ┋extra semantic information, lnav can do things like interleaving ┋
|
||||
A ································································└ carriage-return
|
||||
S 12 ┋messages from different files, generate histograms of messages over ┋
|
||||
A ···································································└ carriage-return
|
||||
S 13 ┋time, and providing hotkeys for navigating through the file. It is ┋
|
||||
A ···································································└ carriage-return
|
||||
S 14 ┋hoped that these features will allow the user to quickly and ┋
|
||||
A ····························································└ carriage-return
|
||||
S 15 ┋efficiently zero in on problems. ┋
|
||||
A ································└ carriage-return
|
||||
S 17 ┋ ┋
|
||||
A ··············································································└ carriage-return
|
||||
S 18 ┋OPENING PATHS/URLs x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 19 ┋================== x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 21 ┋The main arguments to lnav are the files, directories, glob patterns, ┋
|
||||
A ·····································································└ carriage-return
|
||||
S 22 ┋or URLs to be viewed. If no arguments are given, the default syslog ┋
|
||||
S 24 ┋ Press e/E to move forward/backward through error messags ┋
|
||||
A ·····························└ bold │
|
||||
A ······························└ normal │
|
||||
A ·······························└ bold │
|
||||
A ································└ normal │
|
||||
A ···············································································└ backspace, backspace
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ e ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
A └ normal
|
||||
K 3a
|
||||
CSI Erase Below
|
||||
CSI Erase Below
|
||||
S 24 ┋ ┋
|
||||
A └ normal
|
||||
S 23 ┋ Enter an lnav command: (Press CTRL+] to abort) ┋
|
||||
A ·└ fg(#000000), bg(#c0c0c0) │ │
|
||||
A ·······························└ bold│
|
||||
A ·····································└ normal, fg(#000000), bg(#c0c0c0)
|
||||
S 23 ┋ ┋
|
||||
A ···································································└ carriage-return
|
||||
S 24 ┋: ┋
|
||||
A └ normal
|
||||
A ·└ normal
|
||||
K 65
|
||||
S 24 ┋ e ┋
|
||||
A ··└ normal
|
||||
K 63
|
||||
S 24 ┋ c ┋
|
||||
A ···└ normal
|
||||
K 68
|
||||
S 24 ┋ h ┋
|
||||
A ····└ normal
|
||||
K 6f
|
||||
S 24 ┋ ┋
|
||||
A ····└ carriage-return
|
||||
S 14 ┋ Command Help :: ┋
|
||||
A └ fg(#c0c0c0), bg(#000080), bold
|
||||
A ··············└ normal, fg(#c0c0c0), bg(#000080)
|
||||
A ···············└ fg(#000080), bg(#c0c0c0)
|
||||
A ················└ fg(#000000), bg(#c0c0c0)
|
||||
S 15 ┋Synopsis ┋
|
||||
A └ normal, underline
|
||||
A ········└ normal
|
||||
CSI Erase to Right
|
||||
S 16 ┋ :echo msg - Echo the given message ┋
|
||||
A ···└ bold │
|
||||
A ·······└ normal
|
||||
A ········└ underline
|
||||
A ···········└ normal
|
||||
CSI Erase to Right
|
||||
S 16 ┋ ┋
|
||||
A ····································└ carriage-return
|
||||
S 17 ┋Parameter ┋
|
||||
A └ underline
|
||||
A ·········└ normal
|
||||
CSI Erase to Right
|
||||
S 17 ┋ ┋
|
||||
A ·········└ carriage-return
|
||||
S 18 ┋ msg The message to display ┋
|
||||
A ··└ fg(#008080), bold
|
||||
A ·····└ normal
|
||||
CSI Erase to Right
|
||||
S 18 ┋ ┋
|
||||
A ······························└ carriage-return
|
||||
S 19 ┋See Also ┋
|
||||
A └ underline
|
||||
A ········└ normal
|
||||
CSI Erase to Right
|
||||
S 20 ┋ :alt-msg, :eval, :redirect-to, :write-cols-to, :write-csv-to, ┋
|
||||
A ··└ bold │ │ │ │ │ │ │ │ │
|
||||
A ··········└ normal │ │ │ │ │ │
|
||||
A ············└ bold │ │ │ │ │ │
|
||||
A ·················└ normal │ │ │ │ │
|
||||
A ···················└ bold │ │ │ │ │
|
||||
A ·······························└ normal │ │ │
|
||||
A ·································└ bold │ │ │
|
||||
A ···············································└ normal │
|
||||
A ·················································└ bold │
|
||||
A ······························································└ normal
|
||||
CSI Erase to Right
|
||||
S 20 ┋ ┋
|
||||
A ·······························································└ carriage-return
|
||||
S 21 ┋ :write-json-to, :write-jsonlines-to, :write-raw-to, :write-screen-to, ┋
|
||||
A ··└ bold │ │ │ │ │ │ │
|
||||
A ················└ normal │ │ │ │ │
|
||||
A ··················└ bold │ │ │ │ │
|
||||
A ·····································└ normal │ │ │
|
||||
A ·······································└ bold │ │ │
|
||||
A ····················································└ normal │
|
||||
A ······················································└ bold │
|
||||
A ······································································└ normal
|
||||
CSI Erase to Right
|
||||
S 21 ┋ ┋
|
||||
A ·······································································└ carriage-return
|
||||
S 22 ┋ :write-to ┋
|
||||
A ··└ bold │
|
||||
A ···········└ normal
|
||||
CSI Erase to Right
|
||||
S 24 ┋ o ┋
|
||||
A ·····└ normal
|
||||
K 20
|
||||
S 24 ┋ echo ┋
|
||||
A ·····└ backspace
|
||||
A ····└ backspace
|
||||
A ···└ backspace
|
||||
A ··└ backspace
|
||||
A ·└ fg(#000080), bold
|
||||
A ······└ normal, normal
|
||||
K 68
|
||||
S 24 ┋ h ┋
|
||||
A ·······└ normal
|
||||
K 69
|
||||
S 24 ┋ i ┋
|
||||
A ········└ normal
|
||||
K 0d
|
||||
S 24 ┋ ┋
|
||||
A ········└ carriage-return
|
||||
CSI Erase Below
|
||||
S 24 ┋ ┋
|
||||
A └ normal
|
||||
S 14 ┋hoped that these features will allow the user to quickly and x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 15 ┋efficiently zero in on problems. x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 16 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 17 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 18 ┋OPENING PATHS/URLs x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 19 ┋================== x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 20 ┋ x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 21 ┋The main arguments to lnav are the files, directories, glob patterns, x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 22 ┋or URLs to be viewed. If no arguments are given, the default syslog x┋
|
||||
A └┛ alt
|
||||
A ················································································└ normal
|
||||
S 23 ┋ L0 0% ┋
|
||||
A ·└ fg(#000000), bg(#c0c0c0)
|
||||
S 23 ┋ ?:View Help ┋
|
||||
A ···································································└ carriage-return
|
||||
S 24 ┋✔ hi ┋
|
||||
A └ normal, fg(#008000)
|
||||
A ·└ normal
|
||||
A ····└ carriage-return
|
||||
A └ normal
|
||||
K 71
|
||||
OSC Set window title: LOG
|
||||
S 1 ┋ LOG ┋
|
||||
A ···········································································└ fg(#c0c0c0), bg(#000080), bold
|
||||
A ···············································································└ carriage-return
|
||||
S 24 ┋ ┋
|
||||
A └ normal, normal
|
||||
CSI Erase all
|
||||
CSI Use normal screen buffer
|
||||
CTRL restore cursor
|
||||
S 24 ┋ ┋
|
||||
A └ carriage-return
|
||||
CSI Normal cursor keys
|
||||
CTRL Normal keypad
|
|
@ -7,7 +7,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Application cursor keys
|
||||
CTRL =
|
||||
OSC Set window title: LOG
|
||||
|
@ -152,14 +152,15 @@ A ····································
|
|||
S 21 ┋The main arguments to lnav are the files, directories, glob patterns, ┋
|
||||
A ·····································································└ carriage-return
|
||||
S 22 ┋or URLs to be viewed. If no arguments are given, the default syslog ┋
|
||||
S 24 ┋ Press e/E to move forward/backward through error message ┋
|
||||
S 24 ┋ Press e/E to move forward/backward through error messags ┋
|
||||
A ·····························└ bold │
|
||||
A ······························└ normal │
|
||||
A ·······························└ bold │
|
||||
A ································└ normal │
|
||||
A ···············································································└ backspace, backspace
|
||||
A ··············································································└ [4h
|
||||
CSI Replace mode
|
||||
CSI Set Replace mode
|
||||
S 24 ┋ e ┋
|
||||
CSI Reset Replace mode
|
||||
S 24 ┋ ┋
|
||||
A ···············································································└ carriage-return
|
||||
A └ normal
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
S -1 ┋ ┋
|
||||
A └ normal, normal, normal
|
||||
CSI Erase all
|
||||
|
|
|
@ -4,7 +4,7 @@ CSI Use alternate screen buffer
|
|||
CSI set scrolling region 1-24
|
||||
S -1 ┋ ┋
|
||||
A └ normal
|
||||
CSI Replace mode
|
||||
CSI Reset Replace mode
|
||||
CSI Erase all
|
||||
S 1 ┋Gruß ┋
|
||||
K 0d
|
||||
|
|
Loading…
Reference in New Issue