Skip to content
forked from lurk101/pshell

tiny shell for Pico, with Vi and C compiler

License

Notifications You must be signed in to change notification settings

ngbomford/pshell

 
 

Repository files navigation

A tiny Raspberry Pico shell with flash file system, Vi, and C compiler.

Credit where credit is due...

Building from source.

# NOTE: Requires sdk 1.3 or later
git clone https://github.com/lurk101/pshell.git
cd pshell
git submodule update --init
mkdir build
cd build
cmake ..
make

Example log.

Pico Shell - Copyright (C) 1883 Thomas Edison
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See LICENSE file for details.

console on UART (detected 48 rows, 120 columns)

enter command, hit return for help

/: ls
filesystem is not mounted
/: format
are you sure (y/N) ? n
user cancelled
/: mount 
mounted
/: ls

       9 .exrc
      56 hello.pas

/:             
     cd - change directory
     cp - copy file
 format - format the filesystem
    get - get file (xmodem)
     ls - list directory
  mkdir - create directory
  mount - mount filesystem
     mv - rename file or directory
    put - put file (xmodem)
      q - quit
     rm - remove file or directory
 status - filesystem status
unmount - unmount filesystem
     vi - vi editor

/: mkdir bak
/bak created
/: cp hello.pas bak/save.pas
file /hello.pas copied to /bak/save.pas
/: ls

       0 [bak]
       9 .exrc
      56 hello.pas
                                                                                                                        
/: ls bak                                                                                                               
                                                                                                                        
      56 save.pas                                                                                                       
                                                                                                                        
/: cd bak                                                                                                               
changed to /bak                                                                                                         
/bak: ls                                                                                                                
                                                                                                                        
      56 save.pas                                                                                                       
                                                                                                                        
/bak: ls /                                                                                                              
                                                                                                                        
       0 [bak]                                                                                                          
       9 .exrc                                                                                                          
      56 hello.pas                                                                                                      
                                                                                                                        
/bak: cd                                                                                                                

/: vi hello.pas

... fullscreen VT102/xterm compatible output edited out
                                                                                                                        
/: q                                                                                                                    
                                                                                                                        
done                                                                                                                    

About

tiny shell for Pico, with Vi and C compiler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.0%
  • Other 1.0%