App::fix

A Raku program to fix borked (broken) terminals.

App::Fix::term

Table of Contents

NAME

App::fix

AUTHOR

Francis Grizzly Smit ([email protected])

VERSION

v0.1.0

COPYRIGHT

GPL V3.0+ LICENSE

Top of Document

Introduction

This is a Raku program to fix broken (i.e. borked) terminals.

Motivation

Sometimes I exit a program nastily and I end up with a borked (broken) terminal fore example I ^C out of raku command line repl and I can no longer see what I am typing. solution run fix i.e. fix.raku and everything just clears up.

So put fix in your PATH and type fix and the borked terminal should come good.

Fix


fix --help
Usage:
  fix


use Terminal::ANSI::OO :t;
use Term::termios;

multi sub MAIN( --> Int:D) {
    my $flags := Term::termios.new(:fd($*IN.native-descriptor)).getattr;
    $flags.set_lflags('ICANON');
    $flags.set_lflags('ECHO');
    $flags.setattr(:NOW);
    print t.show-cursor ~ t.restore-screen ~ t.clear-screen;
    exit 0;
}

App::fix.raku v0.1.0

A Raku program to fix borked (broken) terminals.

Authors

  • Francis Grizzly Smit

License

GPL-3.0-or-later

Dependencies

Test Dependencies

Provides

  • App::fix

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.