added line numbering to view

This commit is contained in:
Luxferre
2025-12-22 11:08:13 +02:00
parent 8fec507cae
commit 1692715085
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ A simple line-oriented text editor and page-oriented text viewer for MicroPython
Exports the following functions:
- `edit(filename)`: start an `ed`-like text editor (see below)
- `view(filename)`: start a `more`-like pager for viewing a text file
- `view(filename, lno=False)`: start a `more`-like pager for viewing a text file (pass an additional parameter to view it with line numbers)
The editor mode supports the following subset of POSIX ed commands in the standard `[range][command][param]` syntax: