(self)
| 125 | return "vi" |
| 126 | |
| 127 | def get_hex_editor(self) -> str: |
| 128 | editors = ["ghex", "hexedit", "hxd", "hexer", "hexcurse"] |
| 129 | for editor in editors: |
| 130 | if shutil.which(editor): |
| 131 | return editor |
| 132 | return self.get_editor() |
| 133 | |
| 134 | def spawn_editor(self, data: T) -> T: |
| 135 | text = isinstance(data, str) |