rtfm-filemanager 1.3.7 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/rtfm +28 -26
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a4491169a82080e604a5d903e107f3f544ac70355ccac0e70090779704136df
|
4
|
+
data.tar.gz: b7ae5ca815031c325eaf566e85bbd0ab53436b70e33390cad640f7ad15892304
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8170aeeda9b5464f9bbd7a325dc988ec7997020302de8ceab15845cc39b2336f6768b007d8a53517021e2e51c853c06f155174bc079173de94acf3b370f59d
|
7
|
+
data.tar.gz: b5d7c09506eba404783cf6e5fe1ddb0015d0650f330023d1aa24905c945eff09e7049bf4d6846689ae9c3d68044fdd0b638092c56dd6d871f55fc5412e0df580
|
data/bin/rtfm
CHANGED
@@ -560,30 +560,32 @@ def main_getkey # GET KEY FROM USER
|
|
560
560
|
@w_r.update = true
|
561
561
|
@w_b.update = false
|
562
562
|
when 'S' # Show comprehensive system info
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
563
|
+
begin
|
564
|
+
@w_r.pager_cmd = ""
|
565
|
+
uname = `uname -o`.chop + " "
|
566
|
+
uname += `uname -r`.chop + " "
|
567
|
+
uname += `uname -v`.chop + " "
|
568
|
+
uname += `uname -p` + "\n"
|
569
|
+
text = [[253, 1, uname]]
|
570
|
+
cpu = "CPUs = " + `nproc`.chop + " "
|
571
|
+
cpuinfo = `lscpu`
|
572
|
+
cpu += cpuinfo[/^.*Model name:\s*(.*)/, 1] + " "
|
573
|
+
cpu += "Max: " + cpuinfo[/^.*CPU max MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz "
|
574
|
+
cpu += "Min: " + cpuinfo[/^.*CPU min MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz\n\n"
|
575
|
+
text += [[154, 0, cpu]]
|
576
|
+
mem = `free -h` + "\n"
|
577
|
+
text += [[229, 0, mem]]
|
578
|
+
ps = `ps -eo comm,pid,user,pcpu,pmem,stat --sort -pcpu,-pmem | head` + "\n"
|
579
|
+
text += [[195, 0, ps]]
|
580
|
+
disk = `df -H | head -8`
|
581
|
+
text += [[172, 0, disk]]
|
582
|
+
dmesg = "\nDMESG:\n"
|
583
|
+
dmesg += `dmesg | tail -6`
|
584
|
+
text += [[219, 0, dmesg]]
|
585
|
+
w_r_info(ansifix(text))
|
586
|
+
rescue
|
587
|
+
w_r_info("Unable to show system info")
|
588
|
+
end
|
587
589
|
# RIGHT PANE
|
588
590
|
when 'ENTER' # Refresh right pane
|
589
591
|
@w_r.clr # First clear the window, then clear any previously showing image
|
@@ -1051,7 +1053,6 @@ def pager_show # SHOW THE CURRENT PAGE CONTENT
|
|
1051
1053
|
end_l = beg_l + @w_r.maxy - 2
|
1052
1054
|
input = @w_r.text.lines[beg_l..end_l].join() + "\n"
|
1053
1055
|
input.lines.count > @w_r.maxy - 2 ? @w_r.pager_more = true : @w_r.pager_more = false
|
1054
|
-
#if @w_r.pager_cmd.match(/batcat/)
|
1055
1056
|
if @w_r.text.match(/^\e\[/)
|
1056
1057
|
syntax_highlight(input)
|
1057
1058
|
else
|
@@ -1061,7 +1062,8 @@ def pager_show # SHOW THE CURRENT PAGE CONTENT
|
|
1061
1062
|
else
|
1062
1063
|
init_pair(@w_r.fg, @w_r.fg, 0)
|
1063
1064
|
end
|
1064
|
-
@w_r.
|
1065
|
+
@w_r.attr = 0 if @w_r.attr == nil
|
1066
|
+
@w_r.attron(color_pair(@w_r.fg) | @w_r.attr) { @w_r << input }
|
1065
1067
|
end
|
1066
1068
|
(@w_r.maxy - @w_r.cury).times {@w_r.deleteln()} # Clear to bottom of window
|
1067
1069
|
pager_add_markers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -33,7 +33,8 @@ dependencies:
|
|
33
33
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
34
34
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
35
35
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
36
|
-
other features. New in 1.3.
|
36
|
+
other features. New in 1.3.11: Rescued error when system commands fail (via the
|
37
|
+
''S'' key)'
|
37
38
|
email: g@isene.com
|
38
39
|
executables:
|
39
40
|
- rtfm
|