aboutsummaryrefslogtreecommitdiff
path: root/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
commit3e204040c9a9fec810112933d0d81cecbd268943 (patch)
tree9098886ae3fdda61f1815503eb4706190d5b2350 /src/main.cc
parentc6d7e532c4e010f55ab8c6b7cfd8b36d44779725 (diff)
downloadrwebbrowser-3e204040c9a9fec810112933d0d81cecbd268943.tar.gz
rwebbrowser-3e204040c9a9fec810112933d0d81cecbd268943.tar.xz
feat: implement HTTP redirect support, URL search formatting, image alt text rendering, and improved terminal cursor management
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 0371cda..1037833 100644
--- a/src/main.cc
+++ b/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;