Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More shortcut functions in crate term #18548

Closed
richard-uk1 opened this issue Nov 2, 2014 · 6 comments
Closed

More shortcut functions in crate term #18548

richard-uk1 opened this issue Nov 2, 2014 · 6 comments

Comments

@richard-uk1
Copy link
Contributor

Just wondering if there are plans to add some more shortcut functionality in the term crate.

I.e. currently there is fg and bg functions to change color, but no functions for clearing part of the screen, changing cursor location etc.

All the machinery is already there (for reading terminfo etc), just need to implement the functions.

I don't know if this 'core' enough for the main lib, but it's very simple (a few short functions like the fg and bg ones) and avoids having to link to libcurses etc. At the moment I implement the stuff I need as a separate custom Trait, but it feels like it belongs in the term traits.

Don't know windows so don't know how complex terminal stuff works there.

@kunerd
Copy link

kunerd commented Dec 5, 2014

I thought about creating a ncurses like rust library mainly for learning purpose, but then I found libterm in the rust repository. Now I don't know if it would be better to start a separate library on top of the current libterm implementation or to directly contribute to it?

My personal feeling is that such things should be a separate library, but it's always here now.

@richard-uk1
Copy link
Contributor Author

What about a trait in the standard library, but leave implementation to separate libraries?

@kunerd
Copy link

kunerd commented Dec 6, 2014

I found the following post on the rust-dev mailing list: https://mail.mozilla.org/pipermail/rust-dev/2014-July/010956.html .
Like stated in it the library should be something like github.com/rust-lang/term. Maybe someone from the core team could help.

@retep998
Copy link
Member

I'd be glad to provide the Windows implementation for any improvements.

@tomjakubowski
Copy link
Contributor

This should be moved to the term repo. cc @nick29581

@rust-highfive
Copy link
Collaborator

This issue has been moved to the RFCs repo: Stebalien/term#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants