Skip to content

Commit

Permalink
Merge pull request #1 from mitsuki31/develop
Browse files Browse the repository at this point in the history
Release `conio_lt` v0.1.2
  • Loading branch information
mitsuki31 authored Apr 17, 2023
2 parents c5850c8 + 519178e commit a7de037
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# CONIO LITE
**Author : Ryuu Mitsuki**<br>
**Version : 0.1.0**<br>
**Version : 0.1.2**<br>

## DESCRIPTION
`conio_lt.h` is a lite version of `conio.h` for **Linux**.<br>
And intended only for **Linux** user.<br>
<img src="https://www.freepnglogos.com/uploads/linux-png/difference-between-linux-and-window-operating-system-3.png" width="200" height="200"/>

### Full Version by @zoelabbb
[https://github.com/zoelabbb/conio.h.git](https://github.com/zoelabbb/conio.h.git)
- [zoelabbb](https://github.com/zoelabbb)
- [zoelabbb/conio.h](https://github.com/zoelabbb/conio.h.git)

## LIST FUNCTIONS
## LIST METHODS
- `getch()`
- `getche()`
- `ungetch()`
Expand All @@ -20,7 +21,7 @@ And intended only for **Linux** user.<br>
- `wherey()`
- `putch()`
- `putchar()`
> Please note, this isn't a full version of 'conio.h'.<br>
> **Note** This isn't a full version of 'conio.h'.<br>
> This library has only a few functions that are often used by most programmers.<br>
## INSTALLATION
Expand All @@ -37,13 +38,14 @@ git clone https://github.com/mitsuki31/conio_lt.git
```

### Install as root
> Must have an `Administrator` privileges:warning:
> **Warning** Must have an `Administrator` or `root` privileges:warning:
```bash
cp conio_lt/conio_lt.h $HOME/usr/include
```
> **Note** Each devices can be different, on my device is `$HOME/usr/include`
### Install as local
```bash
cp conio_lt/conio_lt.h <path_to_your_project>
```
> Change `<path_to_your_directory>` to your project directory<br>
> **Note** Change `<path_to_your_directory>` to your project directory<br>
8 changes: 6 additions & 2 deletions conio_lt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[======== conio_lt.h ========]
[ Author : Ryuu Mitsuki ]
[ Version : 0.1.0 ]
[ Version : 0.1.2 ]
[============================]
Description
Expand Down Expand Up @@ -102,7 +102,11 @@ class __CONIO_LT {

// :: clrscr() -> void
const void clrscr() {
printf("%s0m%s2J%s1;1f", __prefix, __prefix, __prefix);
/*
* "\033[1J" = clear entire screen permanently (cannot scrolled to up)
* "\033[2J" = clear entire screen but can be scrolled to up
*/
printf("%s0m%s1J%s1;1f", __prefix, __prefix, __prefix);
}

// :: ungetch(char) -> int
Expand Down

0 comments on commit a7de037

Please sign in to comment.