Giter Site home page Giter Site logo

stevelauc / pup Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 13.12 MB

A command-line tool that automatically uploads images from the markdown document to the GitHub repo and replaces the paths with the returned URL.

License: GNU General Public License v2.0

Rust 100.00%
cli command-line-tool markdown pic-uploader

pup's Introduction

About Me

Steve is just a guy seeking happiness, value, and doing something good along the way.

Blog

GitHub stats

Steve's github stats

Find Me

pup's People

Contributors

dependabot[bot] avatar stevelauc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

songlinshu

pup's Issues

Replace termios with nix in echo.rs

pup/src/echo.rs

Lines 3 to 25 in 4a9e1db

use termios::{tcsetattr, Termios, ECHO, TCSANOW};
/// purpose: disable echo on tty configuration
///
/// action: unset ECHO bit of termios.c_lflag
pub fn echo_off() {
let mut t = Termios::from_fd(0).unwrap();
t.c_lflag &= !ECHO;
tcsetattr(0, TCSANOW, &t).unwrap();
}
/// purpose: enable echo on tty configuration
///
/// action: set ECHO bit of termios.c_lflag
pub fn echo_on() {
let mut t = Termios::from_fd(0).unwrap();
t.c_lflag |= ECHO;
tcsetattr(0, TCSANOW, &t).unwrap();
}

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.