Wallunen
3f1457aacb
Fix rendering of whitespace lines
2023-10-13 19:58:41 +03:00
Johan Walles
5313c02dd6
Simplify line rendering more
2023-10-10 21:26:43 +02:00
Johan Walles
dff0774141
Simplify line rendering
2023-10-10 21:14:36 +02:00
Johan Walles
a082fe207e
Use the correct style for the trailer
2023-10-10 06:16:09 +02:00
Johan Walles
d7c104e80a
Be smarter about line endings
...
Doesn't help Kitty though, don't know why.
2023-10-09 19:52:01 +02:00
Johan Walles
5932600b65
Handle more TTY corner cases
...
Fixes #150 , which I to my surprise could reproduce on my own machine.
2023-08-31 19:48:02 +02:00
Johan Walles
5a33eda766
Improve console input EOF handling
...
Related to #126 . Need some Windows tester to tell me how it works.
2023-08-30 21:26:29 +02:00
Johan Walles
574235bc03
Print log messages on panic()
...
Before this change, if moar...
1. Logged some messages
2. Panicked
... then only the panic() output would be printed and the log messages
would be lost.
With this change in place, both are printed.
2023-08-27 09:02:31 +02:00
Johan Walles
15a90f5f77
Do all < 32 characters, not just ESC
2023-06-06 08:50:42 +02:00
Johan Walles
6abe5ba1b1
Improve debug logging of unhandled key events
...
Should help troubleshooting #138 .
2023-06-06 08:31:42 +02:00
Johan Walles
f6b7edc768
Reset hyperlinks at the end of each screen line
2023-05-02 06:29:37 +02:00
Johan Walles
cc6819efd0
Display Private Use Unicode characters
...
Before this change, we rendered those as highlighted question marks.
With this change in place, we just send them to the screen for
displaying.
The reason is that Font Awesome uses these for symbols, this one for
example: https://fontawesome.com/v4/icon/battery-empty
More reading: https://en.wikipedia.org/wiki/Private_Use_Areas
2023-02-28 19:28:37 +01:00
Johan Walles
05a2153c2c
Fix handling incoming pastes
2023-01-11 11:06:38 +01:00
Johan Walles
3e8ba22a0d
Test all existing functionality
2023-01-11 10:44:24 +01:00
Johan Walles
46a5924796
Fix feature envy
...
The ScreenLines struct was just a subset of the pager struct.
2022-02-18 19:27:10 +01:00
Johan Walles
dd776b94fa
golangci-lintify linter exclusions
2022-02-13 08:34:09 +01:00
Johan Walles
b96c88c4d1
Support retaining screen contents after exit
...
Fixes #76 .
2021-11-09 18:56:02 +01:00
Johan Walles
8a5f6fe473
Strip trailing whitespace when wrapping
2021-05-23 15:25:46 +02:00
Johan Walles
da47a1730e
Fix off-by-one screen rendering corner case
2021-05-22 11:42:42 +02:00
Johan Walles
2b1e87b8ac
Log received events on trace level
...
If you run moar with -trace you'll get all handled events listed after
moar finishes running.
The point would be to be able to debug mishandled keys as reported
in #55 .
Also, remove the screen refresh timings from the trace logs. We get lots
of them, and I don't think they provide value any more.
2021-05-13 19:12:44 +02:00
Johan Walles
730ed46f4f
Fix errcheck reported problems
2021-04-20 08:43:37 +02:00
Johan Walles
44dc59d365
Better error message on paging to non-tty
2021-04-18 18:37:55 +02:00
Johan Walles
39ab1fc93d
Don't panic on no-piped-stdin on Windows
2021-04-18 13:33:13 +02:00
Johan Walles
1e46089cff
Fix build errors on Unix
2021-04-17 22:29:45 +02:00
Johan Walles
ff9380fe15
Restore console settings when done
2021-04-17 22:29:45 +02:00
Johan Walles
9b86fc5736
Windows: Color output, character input
...
Arrow keys don't work.
2021-04-17 22:29:45 +02:00
Johan Walles
e72baff02e
Try getting hold of the console on Windows
2021-04-17 22:29:45 +02:00
Johan Walles
44a064c024
Write tcell replacement
...
Fixes #37 and fixes #34 .
2021-04-17 22:24:40 +02:00