You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,11 @@ if webbrowser::open("http://github.com").is_ok() {
41
41
| haiku | ✅ (experimental) | default only | ❌ |
42
42
| ios | ❌ | default only | ❌ |
43
43
44
+
## Consistent Behaviour
45
+
`webbrowser` defines consistent behaviour on all platforms as follows:
46
+
***Non-Blocking** for GUI based browsers (e.g. Firefox, Chrome etc.), while **Blocking** for text based browser (e.g. lynx etc.)
47
+
***Suppressed output** by default for GUI based browsers, so that their stdout/stderr don't pollute the main program's output. This can be overridden by `webbrowser::open_browser_with_options`.
//! * This library requires availability of browsers and a graphical environment during runtime
20
-
//! * `cargo test` will actually open the browser locally.
21
-
//!
22
-
//! # Examples
23
-
//!
24
-
//! ```no_run
25
-
//! use webbrowser;
26
-
//!
27
-
//! if webbrowser::open("http://github.com").is_ok() {
28
-
//! // ...
29
-
//! }
30
-
//! ```
27
+
//! ## Consistent Behaviour
28
+
//! `webbrowser` defines consistent behaviour on all platforms as follows:
29
+
//! * **Non-Blocking** for GUI based browsers (e.g. Firefox, Chrome etc.), while **Blocking** for text based browser (e.g. lynx etc.)
30
+
//! * **Suppressed output** by default for GUI based browsers, so that their stdout/stderr don't pollute the main program's output. This can be overridden by `webbrowser::open_browser_with_options`.
0 commit comments