Skip to content

Commit

Permalink
Print welcome message on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Sep 2, 2021
1 parent 371a10f commit b31235d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
use std::cell::RefCell;
use std::net::{UdpSocket, TcpStream};
use std::io::Write;
use std::net::{TcpStream, UdpSocket};
use std::rc::Rc;

use fltk::{*, prelude::*};
use rosc::{OscMessage, OscPacket, OscType};
use rosc::encoder;
use std::io::Write;

mod mainview;

const VERSION: &'static str = env!("CARGO_PKG_VERSION");

fn welcome() {
println!("Ayaya {}", VERSION);
println!("Copyright (c) 2021, Hannes Braun");
println!("Ayaya is licensed under the Boost Software License 1.0");
println!();
}

fn main() {
welcome();

let ui_data = Rc::new(RefCell::new(
RawOscMessage {
host: "127.0.0.1".to_string(),
Expand Down

0 comments on commit b31235d

Please sign in to comment.