aboutsummaryrefslogtreecommitdiff
path: root/ricochet/src/main.cc
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-12 16:43:23 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-12 16:43:23 +0800
commit79ab6fcb6e74109c46e836594b2cc1ead87d7b30 (patch)
tree9c9f3e22d8554c86bda0329cf9e3f26365371958 /ricochet/src/main.cc
parente81d870756bccbb2b5da52673d52a6bfd93f7b3d (diff)
downloadrcc-project-79ab6fcb6e74109c46e836594b2cc1ead87d7b30.tar.gz
rcc-project-79ab6fcb6e74109c46e836594b2cc1ead87d7b30.tar.xz
feat: implement HTTP redirect support, URL search formatting, image alt text rendering, and improved terminal cursor management
Diffstat (limited to 'ricochet/src/main.cc')
-rw-r--r--ricochet/src/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ricochet/src/main.cc b/ricochet/src/main.cc
index 0371cda..1037833 100644
--- a/ricochet/src/main.cc
+++ b/ricochet/src/main.cc
@@ -62,8 +62,13 @@ int main( int argc, char* argv[] )
return 0;
}
+ std::string start_url( input );
+ if ( !start_url.starts_with( "http://" ) && !start_url.starts_with( "https://" ) ) {
+ start_url.insert( 0, "https://" );
+ }
+
try {
- return ricochet::core::Browser::run( input );
+ return ricochet::core::Browser::run( start_url );
} catch ( const std::exception& e ) {
std::cerr << "Critical Error: " << e.what() << "\n";
return 1;