Added documentation
This commit is contained in:
parent
461ca2a884
commit
cff6deaf6b
16
src/main.rs
16
src/main.rs
@ -1,8 +1,20 @@
|
|||||||
|
/*
|
||||||
|
Program: Bibliofile
|
||||||
|
Language: Rustc 1.68.0
|
||||||
|
ide: Visual Studio Code
|
||||||
|
Operating system: Linux Mint 21.1
|
||||||
|
Purpose: ncurses based ereader and library manager for Linux terminal environments.
|
||||||
|
Last edited: 10:18 PM 3/16/23
|
||||||
|
*/
|
||||||
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::env;
|
use std::env;
|
||||||
extern crate ncurses;
|
extern crate ncurses;
|
||||||
|
|
||||||
|
|
||||||
|
//initial function. Reads the ebook passed by argument.
|
||||||
|
//TODO: add visual library to pull up ebooks.
|
||||||
fn main() -> std::io::Result<()> {
|
fn main() -> std::io::Result<()> {
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|
||||||
@ -19,10 +31,12 @@ fn main() -> std::io::Result<()> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//screen init function
|
||||||
fn screen(){
|
fn screen(){
|
||||||
|
|
||||||
ncurses::initscr();
|
ncurses::initscr();
|
||||||
ncurses::printw("Hello World!");
|
ncurses::addstr("Hello World!");
|
||||||
ncurses::refresh();
|
ncurses::refresh();
|
||||||
ncurses::getch();
|
ncurses::getch();
|
||||||
ncurses::endwin();
|
ncurses::endwin();
|
||||||
|
Loading…
Reference in New Issue
Block a user