Added documentation

This commit is contained in:
Daniel Jones 2023-03-16 22:22:09 -05:00
parent 461ca2a884
commit cff6deaf6b
2 changed files with 16 additions and 2 deletions

BIN
src/main

Binary file not shown.

View File

@ -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();