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::io::prelude::*;
|
||||
use std::env;
|
||||
extern crate ncurses;
|
||||
|
||||
|
||||
//initial function. Reads the ebook passed by argument.
|
||||
//TODO: add visual library to pull up ebooks.
|
||||
fn main() -> std::io::Result<()> {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
@ -19,10 +31,12 @@ fn main() -> std::io::Result<()> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
//screen init function
|
||||
fn screen(){
|
||||
|
||||
ncurses::initscr();
|
||||
ncurses::printw("Hello World!");
|
||||
ncurses::addstr("Hello World!");
|
||||
ncurses::refresh();
|
||||
ncurses::getch();
|
||||
ncurses::endwin();
|
||||
|
Loading…
Reference in New Issue
Block a user