MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / render_welcome_screen

Method render_welcome_screen

src/dev_server.rs:197–225  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

195 }
196
197 fn render_welcome_screen(&self) -> Result<(), Box<dyn std::error::Error>> {
198 execute!(
199 stdout(),
200 Clear(ClearType::All),
201 cursor::MoveTo(0, 0),
202 SetForegroundColor(Color::Cyan),
203 Print("\n\n"),
204 Print(" ╔══════════════════════════════════╗\n"),
205 Print(" ║ RustUI Development Hub ║\n"),
206 Print(" ╚══════════════════════════════════╝\n\n"),
207 SetForegroundColor(Color::White),
208 Print(" Choose your development platform:\n\n"),
209 Print(" 1. 🖥️ Desktop Application\n"),
210 Print(" 2. 📱 iOS Application\n"),
211 Print(" 3. 🤖 Android Application\n"),
212 Print(" 4. 🌐 Web Application\n\n"),
213 SetForegroundColor(Color::Yellow),
214 Print(" Controls:\n"),
215 Print(" • Select platform (1-4)\n"),
216 Print(" • r - Rebuild current platform\n"),
217 Print(" • s - Restart development server\n"),
218 Print(" • q - Quit\n\n"),
219 SetForegroundColor(Color::Green),
220 Print(" Ready to start development!\n"),
221 )?;
222
223 thread::sleep(Duration::from_secs(2));
224 Ok(())
225 }
226
227 fn render_ui(&self) -> Result<(), Box<dyn std::error::Error>> {
228 execute!(

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected