Coder Social home page Coder Social logo

crossterm-cursor's Introduction

Lines of Code Latest Version MIT docs Join us on Discord

Crossterm Cursor

The crossterm_cursor crate is deprecated and no longer maintained. The GitHub repository will be archived soon. All the code is being moved to the crossterm crate. You can learn more in the Merge sub-crates to the crossterm crate issue.

This crate allows you to work with the terminal cursor. It supports all UNIX and Windows terminals down to Windows 7 (not all terminals are tested, see the Tested Terminals for more info).

crossterm_cursor is a sub-crate of the crossterm crate. You can use it directly, but it's highly recommended to use the crossterm crate with the cursor feature enabled.

Features

  • Cross-platform
  • Multi-threaded (send, sync)
  • Detailed documentation
  • Few dependencies
  • Cursor
    • Move the cursor N times (up, down, left, right)
    • Set/get the cursor position
    • Store the cursor position and restore to it later
    • Hide/show the cursor
    • Enable/disable cursor blinking (not all terminals do support this feature)

Getting Started

Click to show Cargo.toml.
[dependencies]
# All crossterm features are enabled by default.
crossterm = "0.11"

use std::io::{stdout, Write};  
use crossterm::{execute, Goto, Result};

fn main() -> Result<()> {
    execute!(stdout(), Goto(10, 10))
}

Other Resources

Authors

  • Timon Post - Project Owner & creator

License

This project is licensed under the MIT License - see the LICENSE file for details

crossterm-cursor's People

Contributors

0xflotus avatar alekratz avatar andersk avatar andy128k avatar annekitsune avatar arnej avatar cjbassi avatar dannyfritz avatar fdehau avatar felixonmars avatar hawkw avatar iciaran avatar ignatenkobrain avatar imdaveho avatar jezza avatar monsieurman avatar natbraun avatar prabirshrestha avatar rfdonnelly avatar rukenshia avatar sigmasd avatar songtronix avatar steveklabnik avatar svartalf avatar timonpost avatar tinywombat765 avatar twe4ked avatar wezm avatar williballenthin avatar zrzka avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

canop

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.