[{"data":1,"prerenderedAt":266},["ShallowReactive",2],{"navigation_docs":3,"-architecture-shell-integration":92,"-architecture-shell-integration-surround-resolved":257,"daily-note-surround--architecture-shell-integration":94},[4,9,35,66,82,87],{"title":5,"path":6,"stem":5,"icon":7,"order":8},"Home","/home","i-lucide-home",0,{"title":10,"icon":11,"order":12,"path":13,"stem":14,"children":15,"page":34},"Guide","i-lucide-book-open",1,"/guide","1.guide",[16,22,28],{"title":17,"path":18,"stem":19,"icon":20,"order":21},"Installation","/guide/installation","1.guide/1.installation","i-lucide-download",10,{"title":23,"path":24,"stem":25,"icon":26,"order":27},"Usage","/guide/usage","1.guide/2.usage","i-lucide-layers",20,{"title":29,"path":30,"stem":31,"icon":32,"order":33},"Configuration","/guide/configuration","1.guide/3.configuration","i-lucide-settings",30,false,{"title":36,"icon":26,"order":37,"path":38,"stem":39,"children":40,"page":34},"Architecture",2,"/architecture","2.architecture",[41,45,50,55,61],{"title":42,"path":43,"stem":44,"icon":26,"order":21},"Overview","/architecture/overview","2.architecture/1.overview",{"title":46,"path":47,"stem":48,"icon":49,"order":27},"Ghostty","/architecture/ghostty","2.architecture/2.ghostty","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54,"order":33},"Sessions","/architecture/sessions","2.architecture/3.sessions","i-lucide-layout-grid",{"title":56,"path":57,"stem":58,"icon":59,"order":60},"Shell Integration","/architecture/shell-integration","2.architecture/4.shell-integration","i-lucide-plug",40,{"title":62,"path":63,"stem":64,"icon":54,"order":65},"Widget","/architecture/widget","2.architecture/5.widget",50,{"title":67,"icon":68,"order":69,"path":70,"stem":71,"children":72,"page":34},"Development","i-lucide-wrench",3,"/development","3.development",[73,77],{"title":74,"path":75,"stem":76,"icon":68,"order":21},"Building","/development/building","3.development/1.building",{"title":78,"path":79,"stem":80,"icon":81,"order":27},"Distribution","/development/distribution","3.development/2.distribution","i-lucide-package",{"title":83,"path":84,"stem":83,"icon":85,"order":86},"Changelog","/changelog","i-lucide-history",98,{"title":88,"path":89,"stem":88,"icon":90,"order":91},"About","/about","i-lucide-info",99,{"id":93,"title":56,"aliases":94,"body":95,"concluded":94,"date":94,"description":251,"documentation":94,"extension":252,"isBase":34,"links":94,"meta":253,"mtime":94,"navigation":254,"order":60,"outcome":94,"path":57,"project":94,"repository":94,"seo":255,"started":94,"status":94,"stem":58,"tags":94,"team":94,"type":94,"__hash__":256},"docs/2.architecture/4.shell-integration.md",null,{"type":96,"value":97,"toc":246},"minimark",[98,103,107,161,164,168,171,181,196,200,203,209,231],[99,100,102],"h2",{"id":101},"osc-escape-sequences","OSC Escape Sequences",[104,105,106],"p",{},"Ghostty's shell integration injects OSC escape sequences into bash, zsh, fish, elvish, and nushell:",[108,109,110,126],"table",{},[111,112,113],"thead",{},[114,115,116,120,123],"tr",{},[117,118,119],"th",{},"Sequence",[117,121,122],{},"Content",[117,124,125],{},"Effect in Kytos",[127,128,129,148],"tbody",{},[114,130,131,142,145],{},[132,133,134,138,139],"td",{},[135,136,137],"code",{},"OSC 0"," / ",[135,140,141],{},"OSC 2",[132,143,144],{},"Process title",[132,146,147],{},"Toolbar title and subtitle",[114,149,150,155,158],{},[132,151,152],{},[135,153,154],{},"OSC 7",[132,156,157],{},"Working directory URI",[132,159,160],{},"Navigator pane label",[104,162,163],{},"These sequences fire automatically when the shell changes directory or launches a process.",[99,165,167],{"id":166},"shell-integration-scripts","Shell Integration Scripts",[104,169,170],{},"Shell integration scripts are bundled at:",[172,173,178],"pre",{"className":174,"code":176,"language":177},[175],"language-text","Kytos.app/Contents/Resources/ghostty/shell-integration/\n  bash-integration.bash\n  zsh-integration.zsh\n  fish/functions/\n  elvish/\n  nushell/\n","text",[135,179,176],{"__ignoreMap":180},"",[104,182,183,184,187,188,191,192,195],{},"Ghostty's shell integration activates when ",[135,185,186],{},"TERM=xterm-ghostty",". No ",[135,189,190],{},".bashrc"," or ",[135,193,194],{},".zshrc"," changes needed.",[99,197,199],{"id":198},"resource-detection","Resource Detection",[104,201,202],{},"libghostty walks up from the executable path looking for:",[172,204,207],{"className":205,"code":206,"language":177},[175],"\u003Cancestor>/Contents/Resources/terminfo/78/xterm-ghostty\n",[135,208,206],{"__ignoreMap":180},[104,210,211,214,215,218,219,222,223,226,227,230],{},[135,212,213],{},"78/"," is the standard terminfo hash bucket for ",[135,216,217],{},"xterm-ghostty"," (",[135,220,221],{},"0x78 = 'x'","). When found, Ghostty sets ",[135,224,225],{},"resources_dir"," to ",[135,228,229],{},"\u003Cancestor>/Contents/Resources/ghostty",".",[104,232,233,234,237,238,241,242,245],{},"The \"Copy Ghostty Resources\" pre-build script in ",[135,235,236],{},"project.yml"," copies these files from ",[135,239,240],{},"Resources/"," (populated by ",[135,243,244],{},"pixi run build-ghostty",") into the app bundle.",{"title":180,"searchDepth":69,"depth":69,"links":247},[248,249,250],{"id":101,"depth":37,"text":102},{"id":166,"depth":37,"text":167},{"id":198,"depth":37,"text":199},"OSC escape sequences, resource detection, and live UI updates","md",{"icon":59},{"title":56,"icon":59,"order":60},{"title":56,"description":251},"6kwbzGr2mp0BV_YMPKQg70UMx1J-baBzqXIs9Ap813k",[258,262],{"title":259,"description":260,"path":52,"navigation":261},"Sessions & Workspaces","Window management, tab restoration, and state persistence",{"title":51,"icon":54,"order":33},{"title":263,"description":264,"path":63,"navigation":265},"Desktop Widget","The KytosWidget extension — workspace snapshots, WidgetKit timeline, and cross-process data sharing",{"title":62,"icon":54,"order":65},1774809103537]