Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| def print_table(items, header=None, wrap=True, max_col_width=20, wrap_style="wrap", row_line=False, fix_col_width=False): | |
| ''' Prints a matrix of data as a human readable table. Matrix | |
| should be a list of lists containing any type of values that can | |
| be converted into text strings. | |
| Two different column adjustment methods are supported through | |
| the *wrap_style* argument: | |
| wrap: it will wrap values to fit max_col_width (by extending cell height) | |
| cut: it will strip values to max_col_width |
| # http://en.wikipedia.org/wiki/Extreme_points_of_the_United_States#Westernmost | |
| top = 49.3457868 # north lat | |
| left = -124.7844079 # west long | |
| right = -66.9513812 # east long | |
| bottom = 24.7433195 # south lat | |
| def cull(latlngs): | |
| """ Accepts a list of lat/lng tuples. | |
| returns the list of tuples that are within the bounding box for the US. | |
| NB. THESE ARE NOT NECESSARILY WITHIN THE US BORDERS! |