andyk / ht Goto Github PK
View Code? Open in Web Editor NEWheadless terminal - wrap any binary with a terminal interface for easy programmatic access.
License: Apache License 2.0
headless terminal - wrap any binary with a terminal interface for easy programmatic access.
License: Apache License 2.0
This looks like it really wants to integrate https://github.com/asciinema/asciinema to record and replay interactions.
It might also be useful to check out https://github.com/oilshell/oil/wiki/Headless-Mode
raw terminal gave a lot of garbed characters. I wish this ht may make ssh interactive session cleaner.
ht ssh username@remote-host
launching command "ssh username@remote-host" in terminal of size 120x40
it waited there forever, actually in normal terminal, it prompts to as ask password, how do I get prompt and feed my input?
Hi,
I am curious whether you have some tools_example.py to share, in order to be able to function call some sample commands or interact via new Mistral7b v0.3 (which is the first open weights model to support funccaling)?
Cheers
ht
's API is an RPC-style newline-delimited JSON sent over stdin/stdout. This reminds me strongly of varlink, an IPC standard used by systemd and podman (the docker alternative). The biggest difference is that varlink uses null-byte-delimited JSON rather than newline-delimited JSON, and usually uses Unix sockets instead of stdin/stdout (so that many clients can connect at once).
getView
error
field in reply JSONGetInfo
and GetInterfaceDescription
messages. This makes it easy for clients to see if a server version is new enough to support some new methods.Note
This is an opinionated suggestion, feel free to disregard.
Does ht interpret ANSI escape codes? There are many protocols that I think ht could interpret and transform into JSON messages. Or if not, then explicitly forward them further over getView API (or a new getUnsanitizedView / getRawView).
Some protocols that are somewhat important for modern terminal experience:
One of the most frequent question in https://news.ycombinator.com/item?id=40552257 was "but what would i need it for?". There were some good arguments and ideas there, I think it would be nice to put them in the readme
Is there a way to, say, wait for text to appear on the screen without taking screenshots and waiting 100 milliseconds?
Does ht support sending a signal to current (foreground) process? How to send SIGINT or SIGKILL?
My Unix knowledge is rusty, but I think ht doesn't need to know what the foreground process is. If you send a signal to pty, AFAIK the kernel will somehow forward it to the foreground process in the process group.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.