diff --git a/README.md b/README.md index bc02b88..617f5a5 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,7 @@ System should run on any MicroPython supproted board but it's tested and develop - [smolOS homepage (http)](http://smol.p1x.in/os/) - [smolOS homepage (https)](https://smol.p1x.in/os/) -## Screens ![smolOS XIAO](media/smolos.png) -![smolOS list](media/list.png) -![smolOS help](media/help.png) -![smolOS editor](media/edit.png) ## Real Life Usecases @@ -79,14 +75,17 @@ In MicroPython REPL write: Write `help` for manual :) +![smolOS list](media/list.png) + +![smolOS help](media/help.png) + +![smolOS editor](media/edit.png) + ## Missing Features Some kind of a roadmap. - move/copy files -- saving in editor -- code refactoring and tools unification - good manual - ## Articles - [hackster.io](https://www.hackster.io/news/krzysztof-jankowski-s-micropython-based-smolos-puts-a-tiny-posix-like-environment-on-your-esp8266-0c776559152b) - [cnx-software.com](https://www.cnx-software.com/2023/07/12/smolos-brings-a-linux-like-command-line-interface-to-esp8266-microcontroller/) diff --git a/media/edit.png b/media/edit.png new file mode 100644 index 0000000..689dba5 Binary files /dev/null and b/media/edit.png differ diff --git a/media/editor.png b/media/editor.png deleted file mode 100644 index 60a69d8..0000000 Binary files a/media/editor.png and /dev/null differ diff --git a/media/list.png b/media/list.png index 536d69c..36d7fca 100644 Binary files a/media/list.png and b/media/list.png differ diff --git a/smolos.py b/smolos.py index 160d306..38aeec9 100644 --- a/smolos.py +++ b/smolos.py @@ -364,8 +364,10 @@ def edit(self, filename=""): print("\033[7m File:",display_name,"Lines:",line_count," // `help`, `<` back,`>` next page, `quit`\t\033[0m") + display_lines = "" for line_num,line in enumerate(print_lines,start=start_index + 1): - print(line_num,":",line.strip()) + display_lines += str(line_num)+": "+line + print(display_lines) else: if show_help: self.man(ed_commands_manual)