Giter Club home page Giter Club logo

ht's People

Contributors

andyk avatar ku1ik avatar mandx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ht's Issues

ht ssh remote_host. show prompt and show us a way to feed input

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?

Agent tool use case examples

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

Varlink API

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).

What could be gained?

  • Instead of maintaining a list of supported methods in project README, with "this method returns XYZ" / "this method doesn't return", you could maintain a varlink IDL file
  • Streaming support, so that clients don't have to poll getView
  • Error messages by setting the error field in reply JSON
  • varlink CLI and systemd-varlinkctl CLI may make scripting and debugging easier
  • Autogenerated correct clients in many languages
  • Introspection - every varlink server has to reply to GetInfo 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.

Escape sequences - current state of support

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:

  • colors,
  • clickable links,
  • mouse integration,
  • clipboard copy/paste,
  • setting title and cwd

Sending signals to foreground process

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.