ze
Loading...
Searching...
No Matches
Functions | Variables
main.c File Reference

Program entry point and runtime initialization. More...

#include <libguile.h>
#include <stdio.h>
#include <stdlib.h>
#include "ze.h"
#include "terminal.h"
#include "status.h"
#include "render.h"
#include "plugins.h"
#include "search.h"
#include "fileio.h"
#include "init.h"
#include "templates.h"
#include "input.h"
Include dependency graph for main.c:

Functions

void initEditor (void)
 Initialize global editor state and screen dimensions.
 
int main (int argc, char *argv[])
 Program entry point.
 

Variables

struct editorConfig E
 
char * notes_template = ""
 
char * readme_template = ""
 

Detailed Description

Program entry point and runtime initialization.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Program entry point.

Sets terminal raw mode, initializes editor state, sets up Guile runtime and Scheme bindings, loads plugins and config, optionally opens a file from argv, then enters the main UI loop.

Parameters
[in]argcArgument count.
[in]argvArgument vector; argv[1] is treated as a filename if present.
Returns
Standard process exit code (not reached under normal operation).
See also
enableRawMode(), initKeyBindings(), loadPlugins(), editorOpen()