Skip to content

1borgy/exoshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exoshell

A console for the terminal, written in rust.

Introduction

Exoshell uses PyO3 and Maturin to build a python binary wheel.

Example

Using exoshell from python:

from exoshell import Action
from exoshell import Console

console = Console("exoshell", ("exoshell", "demo"))
console.start()

running = True
while running:
    match console.update(1):
        case Action.Writeline(line):
            console.print(f">> {line}\n")
            console.print(f"echo: {line!r}\n")

        case Action.Write(c):
            console.print(f"{c}")

        case Action.Quit():
            running = False

        case None:
            ...

console.stop()

About

A console for the terminal, written in rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published